Skip to content

Commit

Permalink
Set the initial imagick colorspace whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Oct 18, 2021
1 parent 57be1a5 commit db42b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Imagick/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db42b19

Please sign in to comment.