Home > other >  remove background(any color) from image using image magick
remove background(any color) from image using image magick

Time:11-08

Hi I am asking this with reference to this question enter image description here

convert eagle.png -alpha off -fuzz 10% -fill none -draw "matte 0,0 floodfill"  \
\(  clone -alpha extract -blur 0x2 -level 50x100% \) \
-alpha off -compose copy_opacity -composite \
eagle_transp.png

Result:

enter image description here

Windows Syntax would be:

convert eagle.png -alpha off -fuzz 10% -fill none -draw "matte 0,0 floodfill" ^ ( clone -alpha extract -blur 0x2 -level 50x100% ) ^ -alpha off -compose copy_opacity -composite ^ eagle_transp.png

If in .bat script, double the % to %%

  • Related