Orientation in EXIF was an ugly hack and we're living with its fallout today.
Cameras should have just rotated the actual image pixels when saving, instead of cheating. If that's too slow, implement it in hardware, or schedule a deferred process and don't let the images be exported until that's done.
replies(3):