Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP imagecolorstotal - Get the Number of Colors in an Image's Palette

PHP imagecolorstotal - Get the Number of Colors in an Image's Palette

PHP Image ProcessingPHP Image Processing

imagecolorstotal — Gets the number of colors in an image's palette.

Syntax



int imagecolorstotal ( resource $image )

This function returns the number of colors in the palette of the specified image.

Related Articles

PHP Image ProcessingPHP Image Processing