Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: determining size of image

by mreece (Friar)
on Feb 22, 2007 at 18:53 UTC ( [id://601620]=note: print w/replies, xml ) Need Help??


in reply to determining size of image

i typically use something like the following (using Image::Size)
use Image::Size; my ($w, $h) = imgsize("blort.jpg"); if ($w > 800) { my $f = $w / 800; $w = int($w/$f); $h = int($h/$f) }; if ($h > 600) { my $f = $h / 600; $w = int($w/$f); $h = int($h/$f) };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found