From bb889a59d6722c616bef4a350ba3ecf0deabade3 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Sat, 22 Jul 2017 10:43:43 -0400 Subject: [PATCH] fix integer for seek --- PIL/ImageFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py index 5e1719fdc..500ebdde4 100644 --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -200,7 +200,7 @@ class ImageFile(Image.Image): for decoder_name, extents, offset, args in self.tile: decoder = Image._getdecoder(self.mode, decoder_name, args, self.decoderconfig) - seek(offset) + seek(int(offset)) decoder.setimage(self.im, extents) if decoder.pulls_fd: decoder.setfd(self.fp)