rolling back gps exif support to match pre 3.0.0 results

This commit is contained in:
wiredfool 2015-10-20 20:14:21 +01:00
parent 69bead98ea
commit 33b90e9b6f

View File

@ -432,9 +432,9 @@ def _getexif(self):
except (KeyError, TypeError):
pass
else:
info = TiffImagePlugin.ImageFileDirectory_v2(head)
info = TiffImagePlugin.ImageFileDirectory_v1(head)
info.load(file)
exif[0x8825] = dict(info)
exif[0x8825] = dict([(k,v[0]) if len(v) == 1 else (k,v) for k,v in info.items()])
return exif