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