ImagePalette
ImagePalette copied to clipboard
Incrorrect colors listing
Hi,
$image = "sample.png"; // this image have only color #CCCCCC
and bg color #fff
// initiate with image
$palette = new ImagePalette( $image);
// get the prominent colors $colors = $palette->colors;
echo $palette;
then i get result as ["#ffffff","#cccccc","#660000","#ffff00","#abbcda"]
Actually 2 color is need to show for this image. Why other colors listing. Can u help me.
you need to see whitelist property