From ad5a75b2f6bbeef65ac60b6b8611c5d2e8a21fdb Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 24 Apr 2023 14:32:42 -0700 Subject: [PATCH] frmagick: orient before transformations (fix #609) Signed-off-by: Varun Patil --- lib/Service/FileRobotMagick.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Service/FileRobotMagick.php b/lib/Service/FileRobotMagick.php index 330c704c..e247a39f 100644 --- a/lib/Service/FileRobotMagick.php +++ b/lib/Service/FileRobotMagick.php @@ -153,6 +153,9 @@ class FileRobotMagick $this->image->transformImageColorspace(\Imagick::COLORSPACE_SRGB); } + // Orient the image + $this->image->autoOrient(); + $this->applyCrop(); $this->applyFlipRotation(); $this->applyResize(); @@ -173,9 +176,6 @@ class FileRobotMagick $this->{$method}(); } - // Orient the image - $this->image->autoOrient(); - return $this->image; }