Add Auto orientation image effect

Created on 8 February 2016, over 8 years ago
Updated 13 February 2024, 8 months ago

Problem/Motivation

images uploaded from mobile devices such as iphone appear rotated / upside down in Drupal

Proposed resolution

include the 'auto orientation' effect, to read the EXIF data in the image for the correct orientation, part of 'Image Effects' (the spiritual successor to imagecache actions from D7):

https://www.drupal.org/project/image_effects

Remaining tasks

User interface changes

API changes

Data model changes

Original report

so...i still see rotated image issues...

we fought this in d7, and hoped for better image orientation detection in d8...

Example:
http://foodtron.org/node/11

What does the wisdom of the group recommend?

Do we need another exif autodetect magic hack module?

this has been an issue for over 4 years...inherited by d8...

It was just a normal photo taken on my iphone 6s...and i remember this all the way back to iphone 3...

same pic on the phone via email comes out fine. attaching original pic to this thread.

@geerlingguy suggests:
The 'auto orientation' effect is part of 'Image Effects' (the spiritual successor to imagecache actions from D7): https://www.drupal.org/project/image_effects

See: https://github.com/drupal-media/image_effects#introduction (it's supported by both GD and ImageMagick).

Looks like it's not in core, though :(

Looks like this ( https://www.drupal.org/node/2284577 ) is the closest thing to possibly making that happen. Outside of the media project, it looks like there's not much interest in doing the work :(

@barrett suggests:
And thus round 5274 of the Small Core vs Expected OOTB Functionality fight is begun....

It seems reasonable to me that whatever system provides image upload and display functionality should also have capability to figure out which way is up in the image.

@mark-trapp suggests:
This tends to happen when taking photos using a mobile device that allows you to access the shutter with a hardware button (like a volume button): iPhones and some (most?) Android phones have this feature.

Here's an article explaining the problem for iPhone (though you can find people confused about it on Android as well): http://iphonephotographyschool.com/iphone-photos-upside-down/

Feature request
Status

Needs work

Version

11.0 🔥

Component
Image system 

Last updated 2 days ago

Created by

🇺🇸United States jacov

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.71.5 2024