On Sun, 2005-02-27 at 22:46 +0100, Craig Bradney wrote: > you could try to get access to EXIF information and autorotate :)
You'd need to use PIL (http://www.pythonware.com/) but can definitely do it. >From http://www.pythonware.com/products/pil/pil-changes-114.htm: + Added experimental EXIF support for JPEG files. To extract EXIF information from a JPEG file, open the file as usual, and call the "_getexif" method. If successful, this method returns a dictionary mapping EXIF TIFF tags to values. If the file does not contain EXIF data, the "_getexif" method returns None. The "ExifTags" module contains a dictionary mapping tags to tag names. This interface will most likely change in future versions. With Python it's easy to fall back to a no-PIL method at runtime if necessary, so you don't need to worry about the extra dependency so long as you check the import and only use PIL if it's present. -- Craig Ringer
