【问题标题】:How to use GraphicsMagick to negate the alpha channel of a picture如何使用 GraphicsMagick 否定图片的 Alpha 通道
【发布时间】:2015-05-20 00:09:11
【问题描述】:

我想反转具有透明背景的图像,即来自

,透明背景

到

,透明的“我们”

在 ImageMagick 中,我们可以这样做

convert 1cut.png -channel a -negate +channel 1cut_nega.png

如http://www.imagemagick.org/discourse-server/viewtopic.php?t=18842中所述

GraphicsMagick 中的等效命令是什么?

如果我使用$ gm convert -channel opacity -negate +channel example/we.png output/we.png,我会得到一个白色的“We”而不是透明的“We”

【问题讨论】:

    标签: imagemagick graphicsmagick


    【解决方案1】:

    我想这就是你想要的:

    gm convert 61I23.png -operator matte negate 1 result.png
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-21
      • 2017-09-04
      • 1970-01-01
      • 1970-01-01
      • 2014-11-20
      相关资源
      最近更新 更多