EXIF field that controls display rotation — culprit of the portrait-photo gotcha.
Value 1 = normal, 6 = rotate 90° CW, 8 = rotate 90° CCW. Ignoring the tag causes iPhone photos to appear sideways.