diff --git a/src/Imagick/Image.php b/src/Imagick/Image.php index bd25e99a..be6c2028 100644 --- a/src/Imagick/Image.php +++ b/src/Imagick/Image.php @@ -71,7 +71,7 @@ public function __construct(\Imagick $imagick, PaletteInterface $palette, Metada { $this->metadata = $metadata; $this->imagick = $imagick; - if (static::getDriverInfo()->hasFeature(DriverInfo::FEATURE_COLORSPACECONVERSION)) { + if (method_exists($imagick, 'setcolorspace')) { $this->setColorspace($palette, false); } $this->palette = $palette;