Replacing a color with transparency stopped working?
Posted: 2013-08-14T04:07:47-07:00
Hello,
A year ago, I wrote a script which contained the following command to replace white by transparency:
This worked fine with those old versions of IM. But it stopped working when I upgraded my distro.
I also tried
as well as
but none of them seems to have any effect. I also tried to use "#ffffff" instead of "white" but again, to no avail.
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
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