如何将两个动画 GIF 图像合并为一个?

如何将两个动画 GIF 图像合并为一个?

我有两个动画.gif文件。可以将它们合并.gif为一个吗.gif

答案1

您可以使用 imagemagick 来实现此目的:

convert animated1.gif animated2.gif combined.gif

答案2

您可以使用 gifcomb

       A  program to combine 2 GIF images of exactly the same size
       into one.  The color maps are merged, but the result may not exceed 256
       colors.   A  boolean  mask GIF file can be used to set which pixel from
       two images to use at each location.   Otherwise  any  background  color
       from  first  image  is  converted  to second image color at that point.
       Only the first image of each file is combined; again, all files'  first
       images must be of exactly the same size.

它位于 12.04 >> 16.04 的存储库中

sudo apt-get install gifcomb

这是手册页

相关内容