image icon indicating copy to clipboard operation
image copied to clipboard

iOS / Orientation - if iOS edits file before uploading, it alters exif orientation

Open sparkwatson opened this issue 4 years ago • 1 comments

I'm using Intervention to handle file uploads in Laravel.

I have a photo that has an exif orientation of 8 (sideways)

In my web app, if I upload an un-touched/un-resized/unedited photo then

$img = Image::make($file);
$img->orientate();

works fine, and correctly rotates the photo.

However, if you "choose image size" to resize the photo before uploading, the exif data reports it as EXIF orientation =1, and the image shows up sideways whether you use orientate() on it or not.

This is not necessarily a bug in Intervention, I realize, but I would love to hear how others handle this iOS eccentricity.

sparkwatson avatar Apr 09 '20 17:04 sparkwatson

I would be very much interested in this too! Thanks!

lukasjuhas avatar Apr 04 '21 20:04 lukasjuhas

Might be related to a bug in an older iOS version. See https://github.com/Intervention/image/issues/868#issuecomment-555077334

olivervogel avatar Jan 08 '24 10:01 olivervogel