Thumbnails: Fixed thumnail orientation

Prevents double rotation caused from both our own orientation handling
upon that invervention was auto-applying since v3.

Fixes #5462
This commit is contained in:
Dan Brown 2025-01-31 21:29:38 +00:00
parent ee88832f1a
commit 4f5f7c10b1
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
1 changed files with 4 additions and 1 deletions

View File

@ -158,7 +158,10 @@ class ImageResizer
*/ */
protected function interventionFromImageData(string $imageData, ?string $fileType): InterventionImage 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 // Ensure gif images are decoded natively instead of deferring to intervention GIF
// handling since we don't need the added animation support. // handling since we don't need the added animation support.