source: http://lavender.b0.upaiyun.com/ex.gif

import PIL
import PIL.Image
im = PIL.Image.open('example.gif')
print(im.size)
print(im.n_frames) # will crash
[root /tmp] python3 run.py
(320, 240)
Killed
The problem appear on this line https://github.com/python-pillow/Pillow/blob/master/PIL/GifImagePlugin.py#L261, self.dispose_extent is very huge.
env: python3.5 on linux, free mem is 2G.
thanks.
source: http://lavender.b0.upaiyun.com/ex.gif
The problem appear on this line https://github.com/python-pillow/Pillow/blob/master/PIL/GifImagePlugin.py#L261, self.dispose_extent is very huge.
env: python3.5 on linux, free mem is 2G.
thanks.