How to exclude history info from identify

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Aldures

How to exclude history info from identify

Post by Aldures »

Here is a newbie question.

When doing "identify pic -verbose -crop 100x100+1+1" sometimes get history info. Other times I don't, it really depends on the picture content.

I also would like to know how I would only get this info from identify:

"
Channel statistics:
Red:
Min: 0 (0)
Max: 1 (1)
Mean: 0.004375 (0.004375)
Standard deviation: 0.0659989 (0.0659989)
Green:
Min: 0 (0)
Max: 1 (1)
Mean: 0.004375 (0.004375)
Standard deviation: 0.0659989 (0.0659989)
Blue:
Min: 0 (0)
Max: 1 (1)
Mean: 0.00435547 (0.00435547)
Standard deviation: 0.0658521 (0.0658521)
"


Any and all suggestions would be greatly appreciated.

Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to exclude history info from identify

Post by anthony »

Use convert .... -format %c histogram:info:
See IM Examples, file handling, histogram.
http://www.imagemagick.org/Usage/files/#histogram

As for channel statistics, at this time the ONLY method is to try to use veraious text utilities to extract it.

For one such example see...
http://www.imagemagick.org/Usage/compare/#type_general
and go down to 'Black and White Images'
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Aldures

Re: How to exclude history info from identify

Post by Aldures »

Thanks Anthony.

I was trying to avoid any pipe method and you have answered my question 100%, thanks.
Post Reply