php8.5
Home/ Manual/ imagick / imagick/ Imagick::getImageColors

Imagick::getImageColors

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Gets the number of unique colors in the image

Description

Imagick::getImageColors(): int

Gets the number of unique colors in the image.

Parameters Parameters

Return Values

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

Source: reference/imagick/imagick/getimagecolors.xml · from the official PHP manual (php/doc-en)