PHP imagecolorstotal - Get the Number of Colors in an Image's Palette
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
- imagecolorat() Get the color index value of a certain pixel.
- imagecolorsforindex() Get the color of a certain index.
PHP Image Processing