imagecolorstotal

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Find out the number of colors in an image's palette
<?php imagecolorstotal(GdImage $image): int