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
$handle->image_crop = array( $original_height - 200 / 2, $original_width - 320 / 2 );
In that case, it depends on the original dimension of your image. You would need something like this: