Don't ask to ask, just ask | |
PerlMonks |
Re^2: resize imageby pvaldes (Chaplain) |
on Mar 15, 2014 at 23:45 UTC ( [id://1078495]=note: print w/replies, xml ) | Need Help?? |
Good work!. I'll suggest to catch both .jpg and .JPEG files (lower and uppercase) changing the 13th line to: next unless $fn=~ m/\.jpe?g$/i;You can also save a couple of lines my ($height, $width) = ($img->getheight,$img->getwidth);
In Section
Seekers of Perl Wisdom
|
|