Imagick::getImageColors

(PECL imagick 2.0.0)

Imagick::getImageColorsGets the number of unique colors in the image

Description

Imagick::getImageColors ( ) : int

Gets the number of unique colors in the image.

Return Values

Returns an int, the number of unique colors in the image.