Php/docs/imagick.getimagecolors
From Get docs
Imagick::getImageColors
(PECL imagick 2, PECL imagick 3)
Imagick::getImageColors — Gets the number of unique colors in the image
Description
public 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.