Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Imagick::gaussianBlurImageImagick::getCompression>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::getColorspace

(PECL imagick 3)

Imagick::getColorspace — Gets the colorspace

Description

public function Imagick::getColorspace(): int

Gets the global colorspace value. This method is available if Imagick has been compiled against ImageMagick version 6.5.7 or newer.

Parameters

This function has no parameters.

Return Values

Returns an integer which can be compared against COLORSPACE constants.


<Imagick::gaussianBlurImageImagick::getCompression>
^ImagickLast updated: Mon, 26 Oct 2026