Skip to content

Commit

Permalink
Thumbnails: Fixed thumnail orientation
Browse files Browse the repository at this point in the history
Prevents double rotation caused from both our own orientation handling
upon that invervention was auto-applying since v3.

Fixes #5462
  • Loading branch information
ssddanbrown committed Jan 31, 2025
1 parent ee88832 commit 4f5f7c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Uploads/ImageResizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ public function resizeImageData(
*/
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.
Expand Down

0 comments on commit 4f5f7c1

Please sign in to comment.