<?php
int public Imagick::getImageColors();
?>
RANDOMIZED COLOR Each new run, a new color is shown. | ||
rgb code | hexadecimal | color |
105, 57, 48 | #693930 | |
ed48 |
<?php
$imagick1 = new imagick(PATH2IMGW . '/jpg/aa.jpg');
$nbrColors1 = $imagick1->getImageColors();
echo "The image number of Colors is " . $nbrColors1;
?>
<?php
$imagick2 = new imagick(PATH2IMGW . '/gif/E 01 01.gif');
$nbrColors2 = $imagick2->getImageColors();
echo "The image number of Colors is " . $nbrColors2;
?>
<?php
$imagick3 = new imagick(PATH2IMGW . '/others/sign.png');
$nbrColors3 = $imagick3->getImageColors();
echo "The image number of Colors is " . $nbrColors3;
?>