Image rescaling breaks/ignores exif orientation
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.
Updated by Mathias Brodala over 4 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:
- Read the orientation upon indexing and apply it physically: no change necessary in other locations of TYPO3 but this reduces image quality.
- 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.
Updated by Riccardo De Contardi about 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