【问题标题】:change animated image background using imagemagick使用 imagemagick 更改动画图像背景
【发布时间】:2020-04-19 17:23:39
【问题描述】:

我正在尝试使用 imagemagick 填充 gif 的背景, this is the input file 我能够裁剪背景 still not perfect but it's an acceptable result 现在当我尝试填充背景时: the output is static despite being a gif 这是我尝试过的命令:

convert "$1" -resize 400x400  -gravity center -background "pink" -extent 400x400 "out.gif"

我做错了什么?

【问题讨论】:

    标签: bash image imagemagick


    【解决方案1】:

    我不知道您要做什么,但这应该向您展示如何使用 floodfill 替换背景:

    magick crybaby.gif -coalesce -fuzz 10% -fill yellow -floodfill 0x0 "rgb(251,102,90)" result.gif
    

    【讨论】:

      猜你喜欢
      • 2011-02-28
      • 1970-01-01
      • 1970-01-01
      • 2019-01-27
      • 2011-06-05
      • 1970-01-01
      • 1970-01-01
      • 2016-12-13
      • 2014-09-16
      相关资源
      最近更新 更多