我需要制作一个动画 gif,在停止之前播放所有帧两次。这似乎是一件简单的事情,但由于某种原因,当我将 -loop 标志设置为 2 时,它会播放 3 次,而当我将它设置为 1 时,它只播放一次。所以:
#this will play once then stop
convert -size 300x600 -delay 50 frame1.png -delay 50 frame2.png -loop 1 animation.gif;
#this will play three times then stop
convert -size 300x600 -delay 50 frame1.png -delay 50 frame2.png -loop 2 animation.gif;
如何让它播放两次?
最佳答案
我会说这是 ImageMagick 中的一个错误。作为一种解决方法,我只能建议您将帧列出两次并将 -loop
设置为 1,如下所示:
convert -size 300x600 -delay 50 frame1.png frame2.png frame1.png frame2.png -loop 1 animation.gif
关于imagemagick - 如何在imagemagick中制作两次动画gif循环?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27066511/