frmagick: orient before transformations (fix #609)
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/653/head
parent
240b82e0d5
commit
ad5a75b2f6
|
@ -153,6 +153,9 @@ class FileRobotMagick
|
||||||
$this->image->transformImageColorspace(\Imagick::COLORSPACE_SRGB);
|
$this->image->transformImageColorspace(\Imagick::COLORSPACE_SRGB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Orient the image
|
||||||
|
$this->image->autoOrient();
|
||||||
|
|
||||||
$this->applyCrop();
|
$this->applyCrop();
|
||||||
$this->applyFlipRotation();
|
$this->applyFlipRotation();
|
||||||
$this->applyResize();
|
$this->applyResize();
|
||||||
|
@ -173,9 +176,6 @@ class FileRobotMagick
|
||||||
$this->{$method}();
|
$this->{$method}();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Orient the image
|
|
||||||
$this->image->autoOrient();
|
|
||||||
|
|
||||||
return $this->image;
|
return $this->image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue