Bug 58400

Summary: RFE: include dimensions for graphics files
Product: [Retired] Red Hat Linux Reporter: James Manning <jmm>
Component: fileAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED NOTABUG QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: low    
Version: 7.2Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-17 21:37:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Manning 2002-01-15 22:17:32 UTC
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):
file-3.35-2

Actual Results:
jmm@bp6:/home/jmm> file /tmp/cat.jpg
/tmp/cat.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, 1 x 1

Expected Results:
just something that has the dimensions of the image if possible

Comment 1 Trond Eivind Glomsrxd 2002-01-17 20:21:56 UTC
Patches accepted :)

Comment 2 James Manning 2002-01-17 21:37:16 UTC
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

Comment 3 James Manning 2002-05-17 16:51:14 UTC
never was really worth it - no need to complicate file when it's not really the
"right tool for the job"