A year ago, I wrote a script which contained the following command to replace white by transparency:
Code: Select all
convert combined.png \
\( \
stanzmuster.ai \
-resample 600x600 \
-alpha set -channel RGBA -fuzz 1% -fill none \
-floodfill +4000+800 white \
-floodfill +4000+3200 white \
-floodfill +4000+5000 white \
\) \
-composite \
out.png
I also tried
Code: Select all
convert stanzmuster.ai -alpha Set -channel RGBA -fuzz 1% -fill none -opaque white sm.png
Code: Select all
convert stanzmuster.ai -alpha Set -channel RGBA -fuzz 1% -fill none -transparent white sm.png
Any ideas?
PS:
$ convert --version
Version: ImageMagick 6.7.8-8 2013-03-18 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP