On Mon, 30 Jun 2003 22:46:10 -0700 (PDT), [EMAIL PROTECTED] (Ling F.
Zhang) wrote:

>This might not exactly be a perl problem...because the
>solution might involve other things...
>
>I have an album I would like to put on line, so I am
>writting cgi script in perl to do it (because I can
>conveniently use the HTML::template module) but I need
>a way of determining the resolution of the image...how
>do I do that? is there module that would work?


use Image::Size;

# get the image size, and print it out
my ($width, $height) = imgsize("image.jpg");
print "The image is $width by $height";




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to