mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-15 20:06:28 +03:00
fix integer for seek
This commit is contained in:
parent
6869431c2b
commit
bb889a59d6
|
@ -200,7 +200,7 @@ class ImageFile(Image.Image):
|
||||||
for decoder_name, extents, offset, args in self.tile:
|
for decoder_name, extents, offset, args in self.tile:
|
||||||
decoder = Image._getdecoder(self.mode, decoder_name,
|
decoder = Image._getdecoder(self.mode, decoder_name,
|
||||||
args, self.decoderconfig)
|
args, self.decoderconfig)
|
||||||
seek(offset)
|
seek(int(offset))
|
||||||
decoder.setimage(self.im, extents)
|
decoder.setimage(self.im, extents)
|
||||||
if decoder.pulls_fd:
|
if decoder.pulls_fd:
|
||||||
decoder.setfd(self.fp)
|
decoder.setfd(self.fp)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user