From b415b0402a36b9fa30b4b02c2ef239dac9a514dc Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Wed, 7 Oct 2020 18:35:16 +1100 Subject: [PATCH] Simplified code Co-authored-by: Konstantin Kopachev --- src/PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index d3fb918a172..e37dc33d5d4 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -3370,7 +3370,7 @@ def get_ifd(self, tag): if tag == 0x927C: from .TiffImagePlugin import ImageFileDirectory_v2 - if self._ifds[0x8769][tag][:8] == b"FUJIFILM": + if tag_data[:8] == b"FUJIFILM": ifd_offset = i32le(tag_data[8:12]) ifd_data = tag_data[ifd_offset:]