Orientation is no longer fixed if a maximum image resolution is set on the field

Created on 15 November 2023, about 1 year ago
Updated 6 August 2024, 3 months ago

This is a regression in 8.x-1.4 caused by the changes in ✨ Add remote file system support (like S3) Fixed .

We have user pictures set to a maximum size and we've found that since updating to 8.x-1.4, the orientation is no longer being corrected on user pictures on our system. We determined this was because that by the time hook_file_presave is invoked, the image has already been resized and the orientation EXIF data stripped out so this module has nothing to do.

It looks like the module used to handle this via a validator--but at this point, the uploaded file is just a temporary file residing at something like /tmp/abc123de and will always hit the early return in _exif_orientation_rotate because there is no scheme on the uri.

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mediabounds

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024