<?php
int public Imagick::getColorspace();
?>
RANDOMIZED COLOR Each new run, a new color is shown. | ||
rgb code | hexadecimal | color |
101, 212, 31 | #65d41f | |
ed48 |
AVAILABLE "imagick" COLORSPACE CONSTANTS STUDIED IN THIS TUTORIAL 1690 - ImageMagick 6.9.10-6 | ||
COLORSPACE | ||
CONSTANT | VALUE | ABOUT |
imagick::COLORSPACE_UNDEFINED | 0 | |
imagick::COLORSPACE_RGB | 1 | |
imagick::COLORSPACE_GRAY | 2 | |
imagick::COLORSPACE_TRANSPARENT | 3 | |
imagick::COLORSPACE_OHTA | 4 | |
imagick::COLORSPACE_LAB | 5 | |
imagick::COLORSPACE_XYZ | 6 | |
imagick::COLORSPACE_YCBCR | 7 | |
imagick::COLORSPACE_YCC | 8 | |
imagick::COLORSPACE_YIQ | 9 | |
imagick::COLORSPACE_YPBPR | 10 | |
imagick::COLORSPACE_YUV | 11 | |
imagick::COLORSPACE_CMYK | 12 | |
imagick::COLORSPACE_SRGB | 13 | |
imagick::COLORSPACE_HSB | 14 | |
imagick::COLORSPACE_HSL | 15 | |
imagick::COLORSPACE_HWB | 16 | |
imagick::COLORSPACE_REC601LUMA | 17 | |
imagick::COLORSPACE_REC709LUMA | 19 | |
imagick::COLORSPACE_LOG | 21 | |
imagick::COLORSPACE_CMY | 22 | ImageMagick version 6.4.2 or higher. |
ed48 |
<?php
$imagick1 = new imagick(PATH2IMGW . '/jpg/aa.jpg');
$Colorspace1 = $imagick1->getImageColorspace();
echo "The image Colorspace is " . $Colorspace1;
?>
<?php
$imagick2 = new imagick(PATH2IMGW . '/gif/E 01 01.gif');
$Colorspace2 = $imagick2->getImageColorspace();
echo "The image Colorspace is " . $Colorspace2;
?>
<?php
$imagick3 = new imagick(PATH2IMGW . '/others/Image1.jpg');
$Colorspace3 = $imagick3->getImageColorspace();
echo "The image Colorspace is " . $Colorspace3;
?>