in reply to Resize image width & height...

It may be overkill, but ImageMagick or GraphicsMagick would do this and almost anything else you can imagine to an image. The Perl interfaces they supply are good. Same code base for both; basically different development/release philosophies if I understand the recent split correctly.