mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +03:00
Allocate a new core image object for each frame, fixes problems with reusing palettes and image sizes
This commit is contained in:
parent
9f04c2d0a5
commit
99f7dd2aff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user