I have an image of arbitrary size on the page. As a conclusion, I need a fixed-size image, say, 90x120px. I would like the user to select an image area by dragging a large image out of the 90x120px window. The resulting image will be displayed in the window. Something like this is implemented in uploading facebook images .
I know how to handle the image on the backend as soon as I get the cropping coordinates, no problem. I think I need to post crop coordinates in hidden forms. A removable user action should force JavaScript to fill in the fields, right? I am new to JS, so a walkthrough will help a lot.
source
share