How can I stretch or resize an image (of any format) using a Perl script?
You could use Image::Resize.