PIL is showing all the previous frames in the gif

后端 未结 1 751
栀梦
栀梦 2020-12-21 02:14
pillow version:5.4.1

The problem is I can see all the frames in the gif.

Expectation: in the lifecycle of a gif having 5 f

相关标签:
1条回答
  • 2020-12-21 02:25

    I think the "disposal" is not being set correctly. Try with:

    images[0].save('anitest.gif',
                   save_all=True,
                   format='GIF',
                   append_images=images[1:],
                   duration=200,disposal=2,
                   loop=0)
    

    0 讨论(0)
提交回复
热议问题