Fix self.decode typo (#9445)

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
This commit is contained in:
Kadir Can Ozden 2026-02-21 15:23:38 +03:00 committed by GitHub
parent 4777a0b318
commit 43c12af730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -579,10 +579,7 @@ class Parser:
pass # not enough data
else:
flag = hasattr(im, "load_seek") or hasattr(im, "load_read")
if flag or len(im.tile) != 1:
# custom load code, or multiple tiles
self.decode = None
else:
if not flag and len(im.tile) == 1:
# initialize decoder
im.load_prepare()
d, e, o, a = im.tile[0]