Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Image Dimensions With Perl

Status
Not open for further replies.

bretttt

Programmer
Jul 23, 2002
74
0
0
US
Is there a way to retrieve the width and height of an image with perl and assign the values to $height $width?

Thanks in advance.
 
Hi
The information is avaiable in the file headers of the individual files but will be made very complicated if you are checking individual files of multiple types
Hope this helps
keith
 
This is not a difficult task, this is actually quite simple.

Search cpan for Image::Info. It calculates the dimensions of your images for you, it's very swift and easy to use.

Hope this helps.
 
Hey my server had that installed already very easy to use thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top