mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +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)
|
||||
# get exif extension
|
||||
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])
|
||||
except (KeyError, TypeError):
|
||||
pass
|
||||
|
@ -432,6 +435,9 @@ def _getexif(self):
|
|||
exif[key] = _fixup(value)
|
||||
# get gpsinfo extension
|
||||
try:
|
||||
# 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):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue
Block a user