Skip to content

Commit 4f5f7c1

Browse files
committed
Thumbnails: Fixed thumnail orientation
Prevents double rotation caused from both our own orientation handling upon that invervention was auto-applying since v3. Fixes #5462
1 parent ee88832 commit 4f5f7c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/Uploads/ImageResizer.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ public function resizeImageData(
158158
*/
159159
protected function interventionFromImageData(string $imageData, ?string $fileType): InterventionImage
160160
{
161-
$manager = new ImageManager(new Driver());
161+
$manager = new ImageManager(
162+
new Driver(),
163+
autoOrientation: false,
164+
);
162165

163166
// Ensure gif images are decoded natively instead of deferring to intervention GIF
164167
// handling since we don't need the added animation support.

0 commit comments

Comments
 (0)