Skip to content

Commit dd42a24

Browse files
authored
Merge pull request #7565 from radarhere/tile
2 parents 18907b5 + a07bac3 commit dd42a24

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/PIL/ImageFile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ def load(self):
207207
if use_mmap:
208208
# try memory mapping
209209
decoder_name, extents, offset, args = self.tile[0]
210+
if isinstance(args, str):
211+
args = (args, 0, 1)
210212
if (
211213
decoder_name == "raw"
212214
and len(args) >= 3

src/PIL/WebPImagePlugin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def load(self):
168168

169169
return super().load()
170170

171+
def load_seek(self, pos):
172+
pass
173+
171174
def tell(self):
172175
if not _webp.HAVE_WEBPANIM:
173176
return super().tell()

0 commit comments

Comments
 (0)