EXIF data gets stripped when using Maximum image resolution

Created on 24 September 2014, almost 10 years ago
Updated 11 July 2023, 12 months ago

Most of our clients upload big images that are a couple megs. To help with disk space I use the "Maximum image resolution" setting on almost all of my image fields. Using that setting scales the image before it is saved to disk and helps save disk space.

The issue with using "Maximum image resolution" in the image field settings is it will scale the image before this module runs. Once the scale happens the image no longer contains the EXIF data. Which makes the rotation not fire.

I was looking through Drupal core and this here are the related functions that are scaling the image if it is over the max dimensions.

https://api.drupal.org/api/drupal/includes%21file.inc/function/file_vali...
https://api.drupal.org/api/drupal/includes%21file.inc/function/file_vali... https://api.drupal.org/api/drupal/modules%21image%21image.field.inc/func...

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gooddesignusa

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada awasson

    @Nathan Tsai is correct, this is an issue with Drupal 8 and Drupal 9. I will create a new issue specific to the D8, 9, 10 version.

Production build 0.69.0 2024