1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-22 20:21:56 +03:00

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

View 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.