How to replace white background color with transparent of an image in ImageMagick?

后端 未结 4 568
有刺的猬
有刺的猬 2020-12-13 02:24

I have an image in .jpg format with white background color. I want to remove the white background color to transparent in Imagemagick.

4条回答
  •  爱一瞬间的悲伤
    2020-12-13 02:43

    This is my solution without magicwand (replace magick by convert for im < 7.0):

    magick img.png -fuzz 20% -fill none -draw "alpha 1x1 floodfill" result.png
    

提交回复
热议问题