Skip to content

Commit

Permalink
Merge pull request #6840 from radarhere/ifd1
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Dec 29, 2022
2 parents 1ba19b1 + 1e3f3ab commit 9ae53cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Expand Up @@ -3687,7 +3687,7 @@ def tobytes(self, offset=8):
def get_ifd(self, tag):
if tag not in self._ifds:
if tag == ExifTags.IFD.IFD1:
if self._info is not None:
if self._info is not None and self._info.next != 0:
self._ifds[tag] = self._get_ifd_dict(self._info.next)
elif tag in [ExifTags.IFD.Exif, ExifTags.IFD.GPSInfo]:
offset = self._hidden_data.get(tag, self.get(tag))
Expand Down

0 comments on commit 9ae53cf

Please sign in to comment.