From: Dan Brown Date: Fri, 31 Jan 2025 21:29:38 +0000 (+0000) Subject: Thumbnails: Fixed thumnail orientation X-Git-Tag: v25.02~1^2~8^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/4f5f7c10b10bfa0434cbe4c81a066cf779ca63e5 Thumbnails: Fixed thumnail orientation Prevents double rotation caused from both our own orientation handling upon that invervention was auto-applying since v3. Fixes #5462 --- diff --git a/app/Uploads/ImageResizer.php b/app/Uploads/ImageResizer.php index fa6b1cac2..5f095658f 100644 --- a/app/Uploads/ImageResizer.php +++ b/app/Uploads/ImageResizer.php @@ -158,7 +158,10 @@ class ImageResizer */ protected function interventionFromImageData(string $imageData, ?string $fileType): InterventionImage { - $manager = new ImageManager(new Driver()); + $manager = new ImageManager( + new Driver(), + autoOrientation: false, + ); // Ensure gif images are decoded natively instead of deferring to intervention GIF // handling since we don't need the added animation support.