Allocate a new core image object for each frame, fixes problems with reusing palettes and image sizes

This commit is contained in:
wiredfool 2014-08-20 22:52:12 -07:00
parent 9f04c2d0a5
commit 99f7dd2aff

View File

@ -655,7 +655,9 @@ class TiffImageFile(ImageFile.ImageFile):
self.__next = self.tag.next
self.__frame += 1
self._setup()
#UNDONE - decompresion bomb
self.im = Image.core.new(self.mode, self.size)
def _tell(self):
return self.__frame