When some photos are uploaded the EXIF data is saved to the database but removed from the photo

altsupport

Core license
License owner
▶🚶‍Reproduction steps
  1. Login and upload a photo. (so far i have only noticed this on some photos with 72 DPI)
  2. Here is an example of a picture that does this. https://1drv.ms/u/s!Aimld0XV5HvziuME0OSXlYZX54yy0g?e=0CWYix
😢Unexpected result

When uploading certain photos with 72 DPI the EXIF data is saved to the database but is no longer saved to the picture when downloading a full quality image off the site. The file size is reduced and the DPI changes to 96.

📃Error log message

No Error
 

Rodolfo

Chevereto creator
Chevereto Staff
Exif data will be always removed when doing resizing or fixing the image orientation. This is because in the process a new image must be generated and the system doesn't preserve the Exif data.
 

altsupport

Core license
License owner
I understand that but the pictures didn’t need resizing or need to have image orientation fixed. I don’t have resizing set on the upload.
 

Rodolfo

Chevereto creator
Chevereto Staff
Image orientation is always applied, if possible. Otherwise the pics will look odd in listings and when embedding.
 

altsupport

Core license
License owner
Thanks for your earlier replies, but don't worry about this. I found the function. I am hoping to adjust the code and use ImageMagick to rotate the images because it should let you keep the EXIF data. It's not limited to pictures with 72 DPI, it affects all images that need rotating as you said..

In case anyone is wondering the code for this is in class.upload.php lines 139 and 349.
 
Top