Mon Feb 28 02:27:04 CET 2005
On Monday 28 February 2005 02:17, Craig Ringer wrote:
> 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
> >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
> 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.
Yep, you can check this stuff out as its now used in the Font Sampler from
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20050228/a5816acb/attachment.pgp
More information about the scribus