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

Bob Friesenhahn <[email protected]> Thu, 15 Jan 2009 22:11:55 -0600 (CST)
Newsgroups gmane.comp.video.graphicsmagick.core
Message-ID <[email protected]>
On Thu, 15 Jan 2009, Bob Friesenhahn wrote:
>>> 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

Note that the above provides the true histogram of the image.

It seems that ImageMagick's "INFO:" simply invokes the DescribeImage() 
function which is the basis of the 'identify' output.  This means that 
there will be no "histogram" unless the image already contains a 
colormap.

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