mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 00:04:09 +03:00
rolling back gps exif support to match pre 3.0.0 results
This commit is contained in:
parent
69bead98ea
commit
33b90e9b6f
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user