Bug #61655


Image rescaling breaks/ignores exif orientation

Added by Robotic-Brain no-lastname-given over 9 years ago. Updated almost 5 years ago.

Must have
Image Generation / GIFBUILDER
Target version:
Start date:
Due date:
% Done:


Estimated time:
TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


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.


Related issues 1 (0 open1 closed)

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

Actions #1

Updated by Claus Due over 8 years ago

  • Category changed from Fluid to Image Cropping

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

Actions #2

Updated by Mathias Brodala over 7 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:

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.
Actions #3

Updated by Riccardo De Contardi over 6 years ago

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

Updated by Susanne Moog over 6 years ago

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

Updated by Riccardo De Contardi almost 5 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