Syntax:int Imagick::getColorspace (void)
Parameters:This function takes no parameters.
Return value:This function returns an integer value that can be compared to
COLORSPACE constants .The program below illustrates the
function Imagick::getColorspace()in PHP:
Program :
// Create a new imagick object
$imagick
=
new
Imagick (
’ https://media .engineerforengineer.org / wp-content / uploads / engineerforengineer-9.png ’
);
// Get color space
$colorSpace
=
$imagick
-> getColorSpace();
// Display the color space
echo
$colorSpace
;
?>
Output:0
Link: https://www .php.net / manual / en / imagick.getcolorspace.php