From 334426a2f31e663a4a707b0fd840469a22cd73f7 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Sep 2023 15:01:46 +1000 Subject: [PATCH] after --- src/PIL/TiffImagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 5ca071e81eb..58873b2aa87 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -1203,8 +1203,6 @@ def load(self): return super().load() def load_end(self): - self.load() - # allow closing if we're on the first frame, there's no next # This is the ImageFile.load path only, libtiff specific below. if not self.is_animated: @@ -1221,6 +1219,8 @@ def load_end(self): continue exif.get_ifd(key) + self.load() + def _load_libtiff(self): """Overload method triggered when we detect a compressed tiff Calls out to libtiff"""