Hi have a JS that allows a user to higlight an area of an image that they want to crop. When clicking crop image it passes the topleft and bottom right co-ordinate of the cropped area as well as the new width and height to a php file. I need a little script that will work out the correct amound pixels to crop from the original image. from the top, left, bottom, and right of the pic using class.upload.php Please can anyone help me with this