All,
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)? I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
Thanks for any suggestions.
Jerry
Jerry Geis wrote:
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)? I did see that file image.jpg sometimes works but reports the wrong image size.
[angenenr@shutdown bilder]$identify bier.png bier.png PNG 1280x1024 DirectClass 1.3mb 0.120u 0:01
identify is in ImageMagick ...
Ralph
On 6/21/06, Jerry Geis geisj@pagestation.com wrote:
All,
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)? I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
"identify" from the ImageMagick package will do the trick.
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)? I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
identify is the command you want. Also, please avoid html emails to mailing lists. It makes things hideous to read, and will cause people to ignore your messages instead of helping.
On Wed, 2006-06-21 at 09:52 -0400, Jerry Geis wrote:
All,
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)?
[obscureduser@wlmlfs08 ~]$ rdjpgcom -verbose Desktop/CorvetteAppraisalPictures\ 001.jpg JPEG image is 2288w * 1712h, 3 color components, 8 bits per sample JPEG process: Baseline [obscureduser@wlmlfs08 ~]$
I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
Thanks for any suggestions.
I haven't checked for other formats, but this command appeared with a simple
man -k jpg
Watch out for the "long-form" option. Unlike the "standard", there's only one dash at the start.
BTW, "man -k" is only useful if you've done a "makewhatis" in the near past.
<snip sig stuff>
HTH
On Wed, 2006-21-06 at 09:52 -0400, Jerry Geis wrote:
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)? I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
[ksandhu@krs downloads]$ file tux-sit3-shine.7.gif tux-sit3-shine.7.gif: GIF image data, version 89a, 327 x 360
The file package should already be installed on your box, if not a 'yum install file' will do the trick.
No need to install ImageMagick, unless of course you want the extra features ImageMagick provides.
HTH,
Ranbir
On 6/23/06, Kanwar Ranbir Sandhu m3freak@rogers.com wrote:
On Wed, 2006-21-06 at 09:52 -0400, Jerry Geis wrote:
Is there a command line program in centos to echo back the size of an image (gif,jpg,png)? I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
No need to install ImageMagick, unless of course you want the extra features ImageMagick provides.
You mean like accurate file information? :-P According to the above email you quoted, file occasionally throws him bad information. I'm not sure why exactly that is, but 'identify' from ImageMagick is the right wrench for pounding in this screw.
On Fri, 2006-23-06 at 14:13 -0400, Jim Perrin wrote:
I did see that file image.jpg sometimes works but reports the wrong image size. I see xview image.jpg reports the correct size but I dont want to see the image just get its size.
No need to install ImageMagick, unless of course you want the extra features ImageMagick provides.
You mean like accurate file information? :-P According to the above email you quoted, file occasionally throws him bad information. I'm not sure why exactly that is, but 'identify' from ImageMagick is the right wrench for pounding in this screw.
Whoops...didn't even see that. That's what happens when you reply to a message in a hurry.
I'll go sit in a corner now. :)
Regards, Ranbir