how to count unique colors in image ?

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?".
User avatar
fmw42
Posts: 25404
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to count unique colors in image ?

Post by fmw42 » 2018-03-31T10:09:15-07:00

Just a note to add to snibgo's excellent suggestion. Be aware that some of these %[xxx] string formats are relatively new and may not work on very old versions of IM 6. %[opaque] however goes back to 6.6.8-9. So should work on most versions of Imagemagick.

Alexvb6
Posts: 49
Joined: 2012-10-12T16:50:15-07:00
Authentication code: 67789

Re: how to count unique colors in image ?

Post by Alexvb6 » 2018-04-02T00:18:21-07:00

I'm astonished these %[xxx] string formats cannot work correctly with IM v7.0.7-28

User avatar
fmw42
Posts: 25404
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to count unique colors in image ?

Post by fmw42 » 2018-04-02T00:24:22-07:00

They generally work fine for me. But there has been a bug report about a few not working correctly and that is being corrected for the next IM release.

Alexvb6
Posts: 49
Joined: 2012-10-12T16:50:15-07:00
Authentication code: 67789

Re: how to count unique colors in image ?

Post by Alexvb6 » 2018-04-06T21:00:17-07:00

Very Useful Snibgo, and %[opaque] is recognized by IM 7.0.7-28 :)

Post Reply