Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: resize image

by pvaldes (Chaplain)
on Mar 15, 2014 at 23:45 UTC ( [id://1078495]=note: print w/replies, xml ) Need Help??


in reply to Re: resize image
in thread resize image

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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1078495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found