nemomobile/nemo-qml-plugins — pull request #6 by hmallat (2012-08-12 16:06:46+00:00)
Title: Patch for reading EXIF orientation data and rotating thumbnails accordingly. 

Patch tries to locate EXIF block inside JPEG and dig the orientation data from the 0th IFD. If not found, or if image is something else than JPEG, orientation is assumed to be "top left" (i.e. unflipped and unrotated).