动画gif的ImageMagick和透明背景 [英] ImageMagick and transparent background for animated gif
本文介绍了动画gif的ImageMagick和透明背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个动画,其中包括一批.png文件(100个文件).源.png文件中的背景是透明的.我想将它们转换为单个动画gif.我已经尝试过以下命令:
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 this command:
convert -delay 0 -loop 0 -alpha set *.png ani.gif
但是结果如下(绿色是HTML页面背景):
But the result is the following (green is the HTML page background):
如何从后面的每帧中删除以前的帧?
How should I remove the previous frames from an every following one?
推荐答案
我找到了-dispose previous
.
更新
确定,convert -delay 0 -loop 0 -alpha set -dispose previous *.png ani.gif
这篇关于动画gif的ImageMagick和透明背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文