convert test.png -threshold 0% -alpha off black_threshold.png
convert test.png -threshold 80% -alpha off black_threshold.png