Imagick::getImageColors

(PECL imagick 2, PECL imagick 3)

Imagick::getImageColorsGets 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.

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/imagick.getimagecolors.php