Skip to content

Commit 0e343c4

Browse files
authored
Merge pull request #5463 from BookStackApp/v24-12
v24-12 branch changes
2 parents 5c78f83 + 4f5f7c1 commit 0e343c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/Uploads/ImageResizer.php

Lines changed: 4 additions & 1 deletion
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)