mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
comments for future understanding
This commit is contained in:
parent
c614846fb7
commit
587698051f
|
@ -422,6 +422,9 @@ def _getexif(self):
|
||||||
exif[key] = _fixup(value)
|
exif[key] = _fixup(value)
|
||||||
# get exif extension
|
# get exif extension
|
||||||
try:
|
try:
|
||||||
|
# exif field 0x8769 is an offset pointer to the location
|
||||||
|
# of the nested embedded exif ifd.
|
||||||
|
# It should be a long, but may be corrupted.
|
||||||
file.seek(exif[0x8769])
|
file.seek(exif[0x8769])
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
pass
|
pass
|
||||||
|
@ -432,7 +435,10 @@ def _getexif(self):
|
||||||
exif[key] = _fixup(value)
|
exif[key] = _fixup(value)
|
||||||
# get gpsinfo extension
|
# get gpsinfo extension
|
||||||
try:
|
try:
|
||||||
file.seek(exif[0x8825])
|
# exif field 0x8825 is an offset pointer to the location
|
||||||
|
# of the nested embedded gps exif ifd.
|
||||||
|
# It should be a long, but may be corrupted.
|
||||||
|
file.seek(exif[0x8825])
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user