Bug #61655

Image rescaling breaks/ignores exif orientation

Added by Robotic-Brain no-lastname-given about 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2014-09-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The f:image view helper does not seem to respect the exif orientation setting of JPEGs.

When uploading JPEGs taken with some kind of phone (like Android), and using the minHeight/minWidth option of the image view helper, all the images taken in portrait mode get rotated by 90°.

This is really annoying since the only way to fix it is to edit the image, rotate it and remove all exif data.


Files


Related issues

Related to TYPO3 Core - Bug #69274: Portrait Images rotated while file processingClosedStefan Froemken2015-08-24

Actions
#1

Updated by Claus Due about 6 years ago

  • Category changed from Fluid to Image Cropping

Moved to image generation category as it applies everywhere, not just in Fluid ViewHelpers.

#2

Updated by Mathias Brodala almost 5 years ago

Notice that this actually applies to every location which handles resources in TYPO3. If you upload images with EXIF orientation tags, they are processed without respecting this.

There are great examples in the following repository, simply upload them through the TYPO3 file module and you'll see that width/height is wrong and the thumbnails are generated accordingly:

https://github.com/recurser/exif-orientation-examples

To fix this we first need to decide how to handle this:

  1. Read the orientation upon indexing and apply it physically: no change necessary in other locations of TYPO3 but this reduces image quality.
  2. Store the image orientation in metadata or similar and fix all locations within TYPO3 to respect it for processing: obviously a lot more work but the best solution to leave images unchanged.
#3

Updated by Riccardo De Contardi about 4 years ago

  • Related to Bug #69274: Portrait Images rotated while file processing added
#4

Updated by Susanne Moog about 4 years ago

  • Category changed from Image Cropping to Image Generation / GIFBUILDER
#5

Updated by Riccardo De Contardi over 2 years ago

  • Status changed from New to Closed

This is solved for version 9.5 and higher with #69274 - tested with "Text and Images" CE - therefore I close it.

If you think that this is the wrong decision (or experience the issue again), please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Also available in: Atom PDF