Imagemagick:用颜色阴影像素替换alpha像素

时间:2015-03-09 10:23:11

标签: image imagemagick png transparency imagemagick-convert

previous question我作出了错误的假设 我需要删除带alpha的像素, 但我实际上需要使用alpha百分比作为白色阴影。

因为只是删除alpha-pixel更改行。 但是背景是白色的。

图片btn_bg_common_press.9.png

btn_bg_common_press.9.png

enter image description here

变为

became

我也看了ImageMagick, replace semi-transparent white with opaque white,发现我可以用

convert icon.png -channel A -fx "(a>0.5) ? 1.0 : 0" output.png

虽然那仍然很粗糙。

0 个答案:

没有答案
相关问题