possible bug identify -unique IM 6.9.0.0 Q16 Mac OSX

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 identify -unique IM 6.9.0.0 Q16 Mac OSX

Post by fmw42 »

According to the documentation for identify, it says:

-unique display image the number of unique colors in the image.


But when I try

Code: Select all

identify -verbose -unique rose:

all I see in the listing is "true" rather than the actual number of colors.

Artifacts:
filename: rose:
identify:unique-colors: true
verbose: true


I think it might be very beneficial to do the following:

Show the number of unique colors for each channel and for the overall image in the sections with channel and overall statistics. And/or add a string format or fx escape [unique-colors] that is channel sensitive.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug identify -unique IM 6.9.0.0 Q16 Mac OSX

Post by magick »

We get:

Code: Select all

identify -verbose -unique rose: 
Image: ROSE
  Base filename: 
  Format: PPM (Portable pixmap format (color))
  Mime type: image/x-portable-pixmap
  Class: DirectClass
  Geometry: 70x46+0+0
  ...
      skewness: 1.45983
      entropy: 0.89247
  Colors: 3019
  Rendering intent: Perceptual
  Gamma: 0.454545
  ...
Notice the Colors: label.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug identify -unique IM 6.9.0.0 Q16 Mac OSX

Post by fmw42 »

Sorry, I missed that. But consider my suggestion as a future enhancement. Thanks
Post Reply