I'd like to resize images proportionally. so i want it to grab the width and hight and for example shrink the width to 150 and the height to shrink proportionally to the width.
This is all i have right now, i know the function is 'resize' but that's it.
my $img = Image::Magick->new;
$img->Read('old.jpg');
my ($w,$h) = $img->Get('width','height'
); # find dimensions
#resize code
$img->Write('new.jpg');
Thanks
Start Free Trial