Red Hat Bugzilla – Bug 58400
RFE: include dimensions for graphics files
Last modified: 2007-03-26 23:50:53 EDT
Description of Problem:
This may be a royal PITA, but if it's in the header info like I think it is,
could we get the dimensions into the output of file?
Version-Release number of selected component (if applicable):
jmm@bp6:/home/jmm> file /tmp/cat.jpg
/tmp/cat.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, 1 x 1
just something that has the dimensions of the image if possible
Patches accepted :)
I did an rpm -ql ImageMagick|grep bin and noticed "identify" which seems to
handle this fine. NOTABUG for this is fine by me, but the code should be easy
to paste from IM src if you think it's still something file should do.
either's cool with me, now that I know the proverbial right tool for the job :)
jmm@bp6:/var/www/html/pics/albums/first-snow-2002> identify first-snow_01.jpg
first-snow_01.jpg JPEG 1280x960 DirectClass 8-bit 304kb 0.6u 0:01
never was really worth it - no need to complicate file when it's not really the
"right tool for the job"