要支持ALPHA参数,需要用以下命令
./configure --disable-openmp --disable-opencl --without-magick-plus-plus --disable-deprecated --without-fontconfig --without-tiff --without-x --disable-assert
官网命令
1、convert cyclops.png -bordercolor white -border 1x1 -alpha set -channel RGBA -fuzz 1% -fill none -floodfill +0+0 white -shave 1x1 cyclops_flood_2.png
我的测试命令
2、convert -alpha set -channel RGBA -fuzz 38% -transparent white -trim -adaptive-blur 1.5x0.5 -antialias cyclops.png cyclops_flood_2.png