Possible Duplicate:
Crop image in PHP
How to crop a part of an image when i have the coordinates of the upper left corner and lower right corner? I can't use the imagecopyresampled function cause in only use the upper left corner as a staring point and the end of the rectangle is determined automatically not by the coordinates of the lower right corner . :( Can anyone help? pls