Open shibin-pb opened 8 years ago
I also wonder ... Is it possible ?
As there is an (hidden) file input, you can embed the cropit in a regular form with enctype="multipart/form-data"
and send the form to a PHP script. This script can access the original file via the $_FILES
variable and you can do further server side stuff with the image.
@MacGyer
Think of that, I have to save my original file and cropped file in separate folder with same name. My image name has generated with hash of micro second.
What do you suggest then?
@tisuchi Well that's really easy. You get the cropped image as Data URI, read the data and save it as a regular file in the folder you want to.
The original image is transferred to the server in $_FILES. You can simply use move_uploaded_file($src, $dest) to save the file in the other folder.
Hi,
Thanks a lot for this project.
How do i get both the original and cropped images
it's posible?
Thanks again