frmagick: ensure correct colorspace
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/579/head
parent
2f62a4e1c2
commit
bc704e8221
|
@ -148,6 +148,11 @@ class FileRobotMagick
|
|||
|
||||
public function apply()
|
||||
{
|
||||
// Ensure the image is in the correct colorspace
|
||||
if (\Imagick::COLORSPACE_SRGB !== $this->image->getColorspace()) {
|
||||
$this->image->transformImageColorspace(\Imagick::COLORSPACE_SRGB);
|
||||
}
|
||||
|
||||
$this->applyCrop();
|
||||
$this->applyFlipRotation();
|
||||
$this->applyResize();
|
||||
|
|
Loading…
Reference in New Issue