I've already tried this:
Code: Select all
convert -alpha off input.png miff:- | convert -transparent white - miff:- | convert -transparent black - output.png

Code: Select all
convert -alpha off input.png miff:- | convert -transparent white - miff:- | convert -transparent black - output.png
Code: Select all
convert input.png gif:- | convert - output.png
Code: Select all
convert Example2.png -channel alpha -threshold 20% +channel NewExample2.png