ImagePalette icon indicating copy to clipboard operation
ImagePalette copied to clipboard

Incrorrect colors listing

Open tobnjoy opened this issue 7 years ago • 1 comments

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.

tobnjoy avatar Dec 29 '17 13:12 tobnjoy

you need to see whitelist property

shayangholami avatar Nov 21 '20 11:11 shayangholami