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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20060621/2e68cb04/attachment-0002.html>
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 at shutdown bilder]$identify bier.png bier.png PNG 1280x1024 DirectClass 1.3mb 0.120u 0:01 identify is in ImageMagick ... Ralph -- Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible Bayerischer Rundfunk...80300 M?nchen | ....to right-justify any idea, even one Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20060621/ce8a3ed4/attachment-0002.sig>
On 6/21/06, Jerry Geis <geisj at 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. -- This message has been double ROT13 encoded for security. Anyone other than the intended recipient attempting to decode this message will be in violation of the DMCA
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 at wlmlfs08 ~]$ rdjpgcom -verbose Desktop/CorvetteAppraisalPictures\ 001.jpg JPEG image is 2288w * 1712h, 3 color components, 8 bits per sample JPEG process: Baseline [obscureduser at 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 -- Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20060621/a6048ff4/attachment-0002.sig>
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 at 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 -- Kanwar Ranbir Sandhu Linux 2.6.16-1.2115_FC4 i686 GNU/Linux 09:47:24 up 3:17, 3 users, load average: 0.65, 0.63, 0.61