2017-07-26 77 views
0

我试图在同一个单一图像的多个区域“同时”播放同一个gif。 通过阅读IM v6的文档,没有这方面的例子。我也试图链接单独的'转换'复合命令没有任何运气。将多个gif添加到一个背景

可以在一个命令或多个命令中执行此操作吗?

回答

1

在ImageMagick中,您可以使用null:和-layers组合将多个动画组合到一个背景图像上。但每个动画必须具有相同数量的帧和延迟。例如,在与新行字符\ UNIX语法(^替换为Windows):

enter image description here

convert -size 512x512 xc:black \ 
null: morph_anim_1pt.gif -gravity northwest -geometry +50+50 -layers composite \ 
null: morph_anim_1pt.gif -gravity southwest -geometry +50+50 -layers composite \ 
null: morph_anim_1pt.gif -gravity southeast -geometry +50+50 -layers composite \ 
null: morph_anim_1pt.gif -gravity northeast -geometry +50+50 -layers composite \ 
morph_anim_1pt_animation.gif 

enter image description here

http://www.imagemagick.org/Usage/anim_mods/#composite