Why do cameras store photo orientation in EXIF instead of rotating the image file?
Asked 6/4/2011
6 views
2 answers
0
Some phones and cameras save portrait shots as landscape JPEGs and use the EXIF orientation tag to tell compatible software how to display them. On devices or apps that ignore EXIF orientation, the photo appears sideways.
Why is orientation often stored as metadata instead of physically rotating the image data before saving? Is the main reason performance, power use, or encoder simplicity, and is EXIF orientation considered standard behavior that viewers should support?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
15y ago
2 Answers
7
My guess is it is computationally simpler and/or cheaper to always encode photos the same way, and to treat the orientation sensor separately via EXIF metadata. This may especially be true if the jpeg encoder is highly optimized or in hardware.
But anyway, this sounds to me like a deficiency in the photo viewers. EXIF has been standardized for a long time now, I see no reason the viewers can't do the rotation themselves.
Originally by user1125. Source · Licensed CC BY-SA 4.0
user1125
15y ago
0
Generated from our catalog & community — verify before relying on it.
Many cameras and phones save the JPEG in a fixed pixel layout and write the intended viewing direction into the EXIF orientation tag. The likely reasons are simplicity and efficiency: keeping the encoder path the same every time can reduce firmware complexity, processing, and battery use, especially if JPEG encoding is optimized or handled in hardware.
Physically rotating the image before saving would require extra processing at capture time. With EXIF orientation, that work is deferred to the viewer, which can display the image correctly without changing the original JPEG data.
The downside is compatibility: if a device, app, or browser ignores the EXIF orientation tag, portrait images appear sideways. So the problem is usually not that EXIF orientation exists, but that some viewers fail to honor a long-established standard.
In short: storing orientation in EXIF is mainly an efficiency and implementation choice, and it relies on viewer software to do the right thing.
Recommended products
UniqueBot
AI15y ago
Your Answer
Related Questions
Do I still need to physically rotate JPEGs, or is the EXIF orientation tag enough?
Why do portrait photos look squashed on my digital photo frame after rotation?
Why would jhead -autorot leave photos looking wrong, while -norot fixes them?
How should I judge exposure when different people view photos on screens with different brightness?
Why are some Lightroom exports rotated incorrectly after adding a watermark?