The Imagick class
PHP Manual

Imagick::getImageColors

(PECL imagick 2.0.0)

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

Description

int Imagick::getImageColors ( void )
Warning

This function is currently not documented; only its argument list is available.

Gets the number of unique colors in the image.

Return Values

Returns TRUE on success.


The Imagick class
PHP Manual