【问题标题】:Convert png into flat white and transparent using image magick使用图像魔法将 png 转换为纯白色和透明
【发布时间】:2015-06-02 10:28:23
【问题描述】:

我正在使用 image magick 将 image1 转换为 image2。

图像1

image2

我尝试使用以下

convert image1.png -fuzz XX% -fill green -transparent white image2.png

它没有像 image2 那样被转换。

谁能帮我把image1转换成image2?

【问题讨论】:

  • 你能告诉我们发生了什么吗?你有错误吗?
  • @milz 我没有收到任何错误,我无法获得预期的 image2。我想将 image1 转换为 image2。

标签: ruby imagemagick rmagick minimagick


【解决方案1】:

试试这个:

convert image1.png -fuzz 20% -fill green -transparent green -transparent white image2.png

输出图像:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-03
    • 2011-03-23
    • 2011-07-13
    • 2016-08-15
    • 1970-01-01
    • 2011-01-25
    相关资源
    最近更新 更多