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 Reply
$foo->image_ratio_crop = true; $foo->image_convert = 'jpg'; $foo->image_resize = true; $foo->image_x = 100; $foo->image_y = 50;
Use the following setting:
That will resize the image so that it fills 100x50, and then it will crop the extra bits.