in reply to graphicsmagick perl shrink image to size
I gave up using Image Magick in favour of Imager. If you have a look at the scale() function on the Imager::Transformations page you will see how easy it is to accomplish.
Obviously you only need to do this transform if the original image exceeds one of the dimensions.my $newimg = $img->scale( xpixels => 800, ypixels => 200, type => 'min', );
|
---|
In Section
Seekers of Perl Wisdom