[magick-users] Number of colors (identify -verbose)

Al Bogner imagemagick-user at ml061.pinguin.uni.cc
Mon Nov 5 03:15:01 PST 2007


Am Montag, 5. November 2007 03:17:02 schrieb Anthony Thyssen:

> | I changed from Suse 10.2 to Suse 10.3, which changed the IM version too
> | from
> |
> | Suse 10.2
> | identify -version
> | Version: ImageMagick 6.3.0 10/12/07 Q16
> |
> | Suse 10.3
> | identify -version
> | Version: ImageMagick 6.3.5 09/25/07 Q16
> |
> | Suse 10.2
> | identify -verboset test.jpg | grep "Colors:"
> |   Colors: 373602
> |
> | Suse 10.3
> | no result
> |
> | Was the number of colors removed or did Suse something wrong?
>
> Errr..  try removing the 't' from   "-verboset"

Thanks, this was a typo

> And you are right 'Colors:' appears missing.
>
> But you can get them using
>    identify -format %k test.jpg

This works fine.

> NOTE: the number of colors in a JPEG image is actually rather usless as
> a jpeg does not store 'colors' but foruier waves.  That is the actual
> color is generated whenever the image is read, often resulting in a
> unique color for each and every pixel.

I don't need an exact value. I want to compare pictures with less or more 
colors and I round it to 100000, eg. 
http://www.flickr.com/photos/tags/colors700000/

Al


More information about the Magick-users mailing list