Flipped orientation flags ignored

Created on 9 October 2017, about 7 years ago
Updated 27 January 2023, almost 2 years ago

Doing a pro-bono site for my sister only to find her camera software is a bit unusual... it uses the flipped orientation flags

http://www.impulseadventure.com/photo/exif-orientation.html

NOTE: Values with "*" are uncommon since they represent "flipped" orientations.

Easy enough to detect to rotate, but the rotate itself causes a "flipped" image (face right when it should face left / flipped horizontally)

    $flip_image = FALSE;
    switch ($file_exif['Orientation']) {
      case 3:
        $flip_image = TRUE;
      case 2:
        $degrees = 180;
        break;

Sadly the core image toolkit don't appear to be able to handle this out of the box, so not sure on options :(

About to search core issue queue if there is a corresponding issue.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇦🇺Australia alan d.

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.

Production build 0.71.5 2024