Images with exif orientation set fail may not be orientated correctly #5165

Closed
opened 2026-02-05 09:45:23 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ssddanbrown on GitHub (Jan 31, 2025).

Originally assigned to: @ssddanbrown on GitHub.

We are specifically setting rotation based upon exif via our own custom means:

387c786768/app/Uploads/ImageResizer.php (L178-L186)

This can now lead to images being wrongly rotated, due to changes in intervention 3 which would apply orientation by default, leading to the the orientation being applied double.
This is mentioned in the upgrade notes, but quite easy to miss which I did.

Somewhat related to some of the newer comments in #4875.

Originally created by @ssddanbrown on GitHub (Jan 31, 2025). Originally assigned to: @ssddanbrown on GitHub. We are specifically setting rotation based upon exif via our own custom means: https://github.com/BookStackApp/BookStack/blob/387c7867687b3761da5dd664b8fda3994bb8c57f/app/Uploads/ImageResizer.php#L178-L186 This can now lead to images being wrongly rotated, due to [changes in intervention 3](https://image.intervention.io/v3/introduction/upgrade) which would apply orientation by default, leading to the the orientation being applied double. This is mentioned in the upgrade notes, but quite easy to miss which I did. Somewhat related to some of the newer comments in #4875.
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 09:45:23 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 1, 2025):

Changes made in 4f5f7c10b1 and part of #5463 to be merged for the next patch/feature.

@ssddanbrown commented on GitHub (Feb 1, 2025): Changes made in https://github.com/BookStackApp/BookStack/commit/4f5f7c10b10bfa0434cbe4c81a066cf779ca63e5 and part of #5463 to be merged for the next patch/feature.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5165