comments for future understanding

This commit is contained in:
wiredfool 2015-09-10 04:36:07 -07:00
parent c614846fb7
commit 587698051f

View File

@ -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