]> BookStack Code Mirror - bookstack/commitdiff
Thumbnails: Fixed thumnail orientation v24-12 5463/head
authorDan Brown <redacted>
Fri, 31 Jan 2025 21:29:38 +0000 (21:29 +0000)
committerDan Brown <redacted>
Fri, 31 Jan 2025 21:29:38 +0000 (21:29 +0000)
Prevents double rotation caused from both our own orientation handling
upon that invervention was auto-applying since v3.

Fixes #5462

app/Uploads/ImageResizer.php

index fa6b1cac2d447651af07f599e4618d422e85b3c2..5f095658f3fc49412245c4fa826d35cb8a86865b 100644 (file)
@@ -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.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.