hongkhanh / cropbox

A lightweight and simple JavaScript, Jquery, YUI plugin to crop your avatar
http://hongkhanh.github.io/cropbox/
MIT License
266 stars 99 forks source link

saving cropped image to folder #31

Open Sypher14 opened 7 years ago

Sypher14 commented 7 years ago

I would like to save the cropped image to a folder using the traditional MOVE_UPLOADED_FILE, but because the cropped image is not selected from a FILE input, this is not working,

Here is the steps the user will take

  1. Select input to be cropped (using the given file upload input)
  2. Click "Crop" ( This shows the cropped image in the #coverimagebase image element, hiding the .imageBox class )
  3. Click "Upload"

Does anyone know how i can go about uploading the image in the IMG element to a folder, else use the already-created img (getBlob) from the plugin?