IM 6.6.7-1 Q16 Mac OSX Tiger.
I might misunderstand this.
This works to get unique colors:
convert logo: -format "%k" info:
232
But this returns nothing:
convert logo: -format "%[unique]" info:
possible bug with string format unique
Re: possible bug with string format unique
%unique is a unique filename, not the unique number of colors in the image.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: possible bug with string format unique
%[unique] is not defined on the offical Formating Percent Escapes page. As such I have absolutely no idea what it does!
%k on the other hand is defined on that page.
Searching source "unique" is a special image meta-data properity, that can be associated with an image, like many of the other properities shown in an identify output. Searching further, it appears to be a properity associated with "delegates"...
Got it from the "delegates.xml" file... It represents -- unique temporary filename for delegates
What use that is, is another matter!
%k on the other hand is defined on that page.
Taking the programmers axiom : Use the source Luke!%k number of unique colors
Searching source "unique" is a special image meta-data properity, that can be associated with an image, like many of the other properities shown in an identify output. Searching further, it appears to be a properity associated with "delegates"...
Got it from the "delegates.xml" file... It represents -- unique temporary filename for delegates
What use that is, is another matter!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/