I am using the bird animated gif from this stackoverflow question about resizing gifs. The image size on disk is about 2.1MB. Now if I do (using python3.5)
import PIL.Image
PIL.Image.open('bird.gif').save('output.gif', save_all=True, optimize=True)
I obtain an image of size 7.5MB.
Using imageio, I am not getting any luckier:
import imageio
im = imageio.mimread('bird.gif')
imageio.mimsave('output.gif', im)
I obtain the exact same size of gif.
Does anyone know how to save an animated gif so that it remains as small as possible, which means at least as small as the input gif ?
Thanks!