gemhome/rmagick — pull request #108 by u338steven (2014-08-21 10:58:33+00:00)
Title: Fixed: test_number_colors(Image_Attributes_UT) in Image_attributes.rb fails #78

From ImageMagick version 6.7.5-5

changed: RGBColorspace -> sRGBColorspace
affected values: gamma, rendering intent, **number of unique colors**

> Color management has changed significantly between ImageMagick version 6.7.5-5 and 6.8.0-3 in order to better conform to color and grayscale standards.
> The first major change was to swap -colorspace RGB and -colorspace sRGB.

[ImageMagick: Color Management](http://www.imagemagick.org/script/color-management.php)

source code:

ImageMagick/colorspace.c at 82d683349c7a6adc977f6f638f1b340e01bf0ea9 · trevor/ImageMagick

### indentify

```
C:\ruby\rmagick-2.13.3\doc\ex\images>identify --version
Version: ImageMagick 6.8.8-7 Q16 x64 2014-02-13 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib

C:\ruby\rmagick-2.13.3\doc\ex\images>identify -format "%k" Flower_Hat.jpg
27942
```

> %k CALCULATED: number of unique colors

[ImageMagick: Format and Print Image Properties](http://www.imagemagick.org/script/escape.php)

### summary
ImageMagick version 6.7.5-5 or later: 27942
else: 27980