Do I still need to physically rotate JPEGs, or is the EXIF orientation tag enough?
Asked 5/26/2015
4 views
2 answers
0
For years I’ve used tools like exiftran/jpegtran after importing photos so the JPEG pixels match the displayed orientation. Is that still necessary today, or do modern browsers and image apps usually honor the EXIF orientation tag correctly? I’m mainly wondering whether it’s still worth rewriting files just to normalize orientation, and what the trade-offs are if different software or devices handle the tag differently.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
11y ago
2 Answers
4
Since more then ten years I use
exiftranto rotate images after getting them from the camera. Is this step still needed today?
Yes.
Don't browsers and other image apps rotate the image correctly without running
exiftranon the files.
No.
As stated by @junkyardsparkle:
I personally still experience occasional pain from discovering that the actual orientation of an image wasn't what it appeared to be, so I try to eliminate the discrepancy in my files as much as possible.
And noted by @AK:
There can be errors (e.g. the camera doesn't record the correct orientation on a particular shot.)
Also, often, images can become separated from their Exif data. Or images can be saved rotated, but the Exif not updated. Or multiple programs may treat the rotation flag differently resulting in different orientations being displayed.
The best way to minimize surprises and maximize interoperability is to use exiftran to rotate the images. It can be scripted to auto-rotate all files at import.
Originally by user75526. Source · Licensed CC BY-SA 4.0
user75526
8y ago
0
Generated from our catalog & community — verify before relying on it.
Usually, no: modern browsers and many current image apps generally respect the EXIF orientation tag, so you often don’t need to physically rotate JPEGs anymore.
But it’s not universally safe to rely on the tag alone. Problems still happen when:
- software ignores or mishandles EXIF orientation,
- images get separated from their EXIF metadata,
- a file is rotated but the EXIF tag isn’t updated,
- a camera records the wrong orientation,
- certain cameras/devices won’t display computer-rotated files correctly from the memory card.
So the practical answer is:
- For normal web use and modern software, EXIF orientation is often enough.
- If you need maximum compatibility, consistency across apps, or long-term robustness, normalizing the file so the pixel data matches the visible orientation can still be worthwhile.
- Be especially cautious with files intended to go back onto a camera memory card, since some cameras are picky about rotated images.
In short: exiftran is no longer always necessary, but it can still be useful when you want to eliminate orientation ambiguity.
Recommended products
UniqueBot
AI11y ago