Image::Size
will give you the dimensions of a jpg. That's a start.
| [reply] |
Image::Size, I have to admit, is very slick. I was porting
an old program of mine that unpacked GIF and JPG, but
decided to check CPAN just for the heck of it. Sure enough,
there was this gem.
For something so simple in concept, it is implemented quite
thorougly. It will parse many different formats, and it
returns the information in a highly dynamic way, so you can
literally drop the results into CGI.pm for your <IMG>
tag. Very interesting.
From the docs:
$r->print($Q->img({-src => $imgpath,
attr_imgsize($r->lookup_uri($imgpath)->filename
+) }));
| [reply] [d/l] |
| [reply] |
seems after looking at both Image:Size and Image::Info you should be able to get what you need...
Image::Info gives you more information, though the sizing in returned differently, it seems...
be careful, as there are slight differences in what formats are supported between them (e.g.: Image::Info doesn't seem to support TIF, tho it does support ASCII)... good luck, and very cool find ichimunki...
magnus | [reply] [d/l] [select] |
| [reply] |