possible bug with string format unique

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug with string format unique

Post by fmw42 »

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:
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug with string format unique

Post by magick »

%unique is a unique filename, not the unique number of colors in the image.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: possible bug with string format unique

Post by anthony »

%[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.
%k number of unique colors
Taking the programmers axiom : Use the source Luke!

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/
Post Reply