|Perl Monk, Perl Meditation|
Dimensions of a jpg fileby steelrose (Scribe)
|on May 18, 2005 at 15:27 UTC||Need Help??|
steelrose has asked for the
wisdom of the Perl Monks concerning the following question:
I'd like to know if anyone knows of a simple way to determine the height and width of a .jpg file in perl. The upshot of this is that I could then build a window size based on the dimensions of the photo, and not have to manually open up each photo and copy it's dimensions to my HTML code.
Anyone do something similar now? How so?
If you give a man a fish he will eat for a day.
If you teach a man to fish he will buy an ugly hat.
If you talk about fish to a starving man, you're a consultant.