ImageMagick and transparent background for animated gif

前端 未结 2 1927
再見小時候
再見小時候 2021-02-05 02:42

I have an animation as a batch of .png files (100 files). The background is transparent in the source .png files. I want to convert them into a single animated gif. I have tried

相关标签:
2条回答
  • 2021-02-05 02:59

    I've found -dispose previous.

    UPDATE

    OK, convert -delay 0 -loop 0 -alpha set -dispose previous *.png ani.gif

    0 讨论(0)
  • 2021-02-05 03:26

    The solution is here:

    http://www.alecjacobson.com/weblog/?p=2601

    The magic keyword seems to be “dispose” and calling the following fixed the problem:

    convert -dispose 2 screencapture-*.tga screencapture.gif
    
    0 讨论(0)
提交回复
热议问题