【问题标题】:Imagemagick reset scene for each frame in an animated gifImagemagick 为动画 gif 中的每一帧重置场景
【发布时间】:2020-03-17 20:24:07
【问题描述】:

我正在尝试在命令行中生成 gif。

我的源图像有这样的图块:

当我使用命令 convert source.png -crop 80x80 +repage test.gif 创建 gif 时,我得到以下结果:

在此图像中,每个图像都绘制在它之前的图像之上。那么我们如何在每次绘制图像时重置场景,以便源图像中的每个图块本身都成为一个帧?

【问题讨论】:

    标签: imagemagick imagemagick-convert


    【解决方案1】:

    我觉得你需要设置"disposition"

    convert -background none cartoon.png -crop 80x80 +repage -delay 80 -set dispose background  result.gif
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-03
      • 2014-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-06
      • 2023-03-30
      • 2013-03-28
      相关资源
      最近更新 更多