mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-18 03:50:25 +01:00
* Code refactoring.
* Small changes in assumptions. * TODO supplement. * Moved minor features into future versions. * Added extensions configuration editor.
This commit is contained in:
@@ -56,6 +56,7 @@ class Thumbnail(object):
|
||||
if exif.has_key('Image Orientation'):
|
||||
orientation = exif['Image Orientation'].values[0]
|
||||
if orientation > 1:
|
||||
# TODO: replace silly datetime function with tempfile
|
||||
t = path.join(gettempdir(), "thumb%d.jpg" % datetime.now().microsecond)
|
||||
im_in = Image.open(filepath)
|
||||
im_out = None
|
||||
|
||||
Reference in New Issue
Block a user