Mercurial > public > sg101
comparison core/image.py @ 839:36d988b800c2
Issue #74, fix bug in 234726f.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 04 Oct 2014 17:06:56 -0500 |
parents | 234726f5a47a |
children | 24fc302f9076 |
comparison
equal
deleted
inserted
replaced
838:f31168465953 | 839:36d988b800c2 |
---|---|
102 | 102 |
103 """ | 103 """ |
104 if hasattr(im, '_getexif'): | 104 if hasattr(im, '_getexif'): |
105 exif = im._getexif() | 105 exif = im._getexif() |
106 if exif and ORIENT_TAG in exif: | 106 if exif and ORIENT_TAG in exif: |
107 return (True, ORIENT_FUNCS[ORIENT_TAG](im)) | 107 orientation = exif[ORIENT_TAG] |
108 func = ORIENT_FUNCS.get(orientation) | |
109 if func: | |
110 return (True, func(im)) | |
108 | 111 |
109 return (False, im) | 112 return (False, im) |