PHP imagecolorstotal - Get the number of colors in the palette of an image
imagecolorstotal — Get the number of colors in the palette of an image.
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 pixel.
- imagecolorsforindex()Get the color of a certain index.
PHP Image Processing