【问题标题】:How to make an animated gif grayscale with imagemagick?如何使用 imagemagick 制作动画 gif 灰度?
【发布时间】:2013-01-25 17:34:34
【问题描述】:

我有一个彩色的 GIF 动画,我想让它变成灰度。如何使用 ImageMagick 做到这一点?我试过用这个:

convert image.gif -fx "(r+g+b)/3" imageGS.gif

但这给我留下了一个灰度图像,它只是动画的第一帧。

如何告诉 ImageMagick 影响动画的所有帧?

【问题讨论】:

    标签: imagemagick animated-gif


    【解决方案1】:

    改用modulate 命令并将饱和度设置为0:

    convert image.gif -modulate 100,0,100 imageGS.gif
    

    我用我自己的动画 gif 对此进行了测试,效果很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-11-17
      • 2012-12-11
      • 1970-01-01
      • 1970-01-01
      • 2012-08-23
      • 2017-11-22
      • 1970-01-01
      相关资源
      最近更新 更多