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
See all posts See thread Reply
if ($handle->uploaded) { if ($handle->file_is_image) { $handle->image_convert = 'jpg'; $handle->image_crop = array($y1, $handle->image_src_x - $x2, $handle->image_src_y - $y2, $x1); $handle->process('/my/dir/'); } }