Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
How to determine image height & width



bert
Deleted

Nov 18, 2000, 6:31 AM


Views: 2464
How to determine image height & width

I wanne have a script that determines the heigt en width of a gif, jpeg.


Kanji
User / Moderator

Nov 18, 2000, 7:28 AM


Views: 2464
Re: How to determine image height & width

Error checking and module installation left as an exercise to the user. :)

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

perl -MImage::Size -le '$,="x"; print((imgsize(shift))[0,1])' an-image.jpg</pre><HR></BLOCKQUOTE>


bert
Deleted

Nov 21, 2000, 11:42 AM


Views: 2464
Re: How to determine image height & width

Thanx Mate