The number of images to obtain a palette of colors - PHP imagecolorstotal
imagecolorstotal - obtain an image of the number of colors in the palette.
grammar
int imagecolorstotal ( resource $image )
This function returns the number of colors in the palette of the image specified.
related articles
- imagecolorat () to obtain an index value of a color pixel.
- imagecolorsforindex () to obtain an index color.