From a4363ae92ae891a176f7ed475d5e4f0d40ee1873 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Sep 2023 15:04:33 +1000 Subject: [PATCH] ah --- src/PIL/TiffImagePlugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 3d0b6a26cac..9aab863ff22 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -1203,9 +1203,6 @@ def load(self): return super().load() def load_end(self): - self.load() - self.getexif() - # 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: @@ -1222,6 +1219,8 @@ def load_end(self): continue exif.get_ifd(key) + ImageOps.exif_transpose(self, in_place=True) + def _load_libtiff(self): """Overload method triggered when we detect a compressed tiff Calls out to libtiff"""