Page 1 of 1

identify -unique doesn't work

Posted: 2010-11-03T08:31:44-07:00
by Misty
According to the instructions when I run the program, identify is meant to return the number of colours in an image with the syntax identify -unique. However, while it recognizes the command, it doesn't return the number of colours and ImageMagick's output is the same as if no option were selected. It seems that the only way to return the information is using identify -format %k instead. Is this a bug?

Re: identify -unique doesn't work

Posted: 2010-11-03T09:31:45-07:00
by magick
Add -verbose to your command line.

Re: identify -unique doesn't work

Posted: 2010-11-03T11:14:23-07:00
by Misty
Thank you! The command doesn't indicate that it requires -verbose; maybe that should be added to the documentation.

Re: identify -unique doesn't work

Posted: 2010-11-03T11:40:19-07:00
by magick
Its a bug. Look for a fix in the next point release of ImageMagick. Thanks.

Re: identify -unique doesn't work

Posted: 2011-10-21T15:52:43-07:00
by alosca
In which release should -unique work? I have

identify --version
Version: ImageMagick 6.7.1-0 2011-07-26 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP HDRI

and it is not working. Just checking to see if it still is an open bug.
Thanks!

Re: identify -unique doesn't work

Posted: 2011-10-21T16:13:32-07:00
by fmw42
try

convert image -format "%k" info:


see http://www.imagemagick.org/script/escape.php

Re: identify -unique doesn't work

Posted: 2011-10-25T11:51:55-07:00
by alosca
Thanks! That works.