class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
I wonder if it is possible to make a similar image CROP in this http://demo.w3bees.com/jquery-image-crop/
Select the image, a preview appears, select the area you want to crop. Then send the registration form.
Your code has the crop, but it has the part that displays the image and a way to select the area you want to crop.
Any hint is welcome.
Thank you