Image cropping with drag for the crop, a la facebook.
Drag the image to adjust. On profile picture - edit thumbnail.

Is there something similar available on the web?

I thought of a div containing the image to be cropped, with overflow hidden and with the mouse allow to do the scroll. Retrieve the coordinates of the x scrollbar and of the y scrollbar and that area gets cropped afterwards with PHP but how could I make the mouse to scroll with the overflow hidden, I thought about integrating the custom scrollbars jquery plugins but that would allow me to drag either vertically or horizontally as it would be an opacity 0 for the scrollbar with the full height and width of the div.

Suggestions or something similar, thank you.


<div style="width:80px;height:80px;overflow:hidden;">
<img src="an image that is wider and higher than the div">