frmagick: orient before transformations (fix #609)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-04-24 14:32:42 -07:00
parent 240b82e0d5
commit ad5a75b2f6
1 changed files with 3 additions and 3 deletions

View File

@ -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;
} }