From bcde2b53e2bd885ea93bcf7a214f6dc6970b1245 Mon Sep 17 00:00:00 2001 From: Mike Cantelon Date: Thu, 28 Mar 2024 10:17:46 -0700 Subject: [PATCH] Automatically orient scaled images, refs #13606 (#1788) Added option to ImageMagick convert tool to automatically orient scaled images. --- plugins/sfThumbnailPlugin/lib/sfImageMagickAdapter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sfThumbnailPlugin/lib/sfImageMagickAdapter.class.php b/plugins/sfThumbnailPlugin/lib/sfImageMagickAdapter.class.php index 3e9cd5827b..f86c50f041 100644 --- a/plugins/sfThumbnailPlugin/lib/sfImageMagickAdapter.class.php +++ b/plugins/sfThumbnailPlugin/lib/sfImageMagickAdapter.class.php @@ -333,7 +333,7 @@ public function save($thumbnail, $thumbDest, $targetMime = null) break; } // end switch - $command .= ' -thumbnail '; + $command .= ' -auto-orient -thumbnail '; $command .= $thumbnail->getThumbWidth().'x'.$thumbnail->getThumbHeight(); // See Qubit issue 2380