Imported HEIC images when exported to JPG add faulty rotated EXIF information
Environment/Versions
- GIMP version: 2.10.30
- Package: Gimp.org website
- Operating System: macOS Monterey
This also appeared on the latest "nightly" build for macOS.
This bug does not appear on 2.99.8.
Description of the bug
When opening an HEIC image (taken with the selfie camera on an iPhone in the upright position), when that image is exported as a jpeg, the EXIF information indicates that it should be rotated 90 deg to the right.
Reproduction
Is the bug reproducible? Always
Though I'm not sure what the circumstances behind it might be.
Reproduction steps:
- Take image using iPhone in upright position and with selfie camera (as well as with the main camera on the rear).
- (Image has been uploaded as original to google photos)
- (Image has been downloaded as original to mac
- Open image in GIMP (no complaints about EXIF data seen at this time)
- Export image as jpeg (detecting type using extension)
- Open image in GIMP (and asks if EXIF rotation info should be used), or open in anything else and image is rotated right 90 deg.
- Open same HEIC image in
Preview
- Export same image to Jpeg
- Image is correctly oriented
…
Expected result: Image should be upright
Actual result: Image is rotated 90 deg (using EXIF info)
Additional information
HEIC image import
HEIC image
Export to JPEG
Export options
Open Jpeg
Import warning (but you wouldn't know if you tried to use it elsewhere)
And the result if we accept the EXIF info
Edited by Lukas Oberhuber