Re: gm convert file.png -verbose info: does not work

Bob Friesenhahn <[email protected]> Thu, 15 Jan 2009 21:58:26 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.core
Message-ID <[email protected]>
On Fri, 16 Jan 2009, Nguyen Vu Hung wrote:

>> There seems to be no record in ImageMagick's Changelog about> when 
>> the "INFO:" format was added, and I don't remember.  You> can 
>> probably get the same effect by using>> gm identify -verbose 
>> file.png > file.infoThis command doesn't give me the histogram for 
>> file.png.Is there any way to do this with GM?

   gm convert file.png histogram:histo.miff
   gm identify -format '%c' histo.miff

or

   gm convert file.png histogram:- | gm identify -format '%c' -

You will need 1.3.3 or later for this or else the histogram text will 
be truncated.

Bob
======================================
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword