Skip to content

Commit 4d801c5

Browse files
author
Timon de Groot
committed
Fetch image color space after conversion
1 parent 5fd9733 commit 4d801c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Image/Adapter/ImageMagick.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ private function maybeConvertColorspace(): void
615615
{
616616
if ($this->colorspace === \Imagick::COLORSPACE_CMYK || $this->colorspace === \Imagick::COLORSPACE_UNDEFINED) {
617617
$this->_imageHandler->transformImageColorspace(\Imagick::COLORSPACE_SRGB);
618-
$this->colorspace = \Imagick::COLORSPACE_SRGB;
618+
$this->colorspace = $this->_imageHandler->getImageColorspace();
619619
}
620620
}
621621
}

0 commit comments

Comments
 (0)