Do not load image more than once

This commit is contained in:
Andrew Murray 2025-04-23 20:34:53 +10:00
parent 58e48745cc
commit 7a48a9fae0

View File

@ -179,6 +179,7 @@ class IptcImageFile(ImageFile.ImageFile):
with Image.open(o) as _im: with Image.open(o) as _im:
_im.load() _im.load()
self.im = _im.im self.im = _im.im
self.tile = []
return None return None