give opacity to color png code example
Example 1: change opacity of png
convert test.png -threshold 0% -alpha off black_threshold.png
Example 2: change opacity of png
convert test.png -threshold 80% -alpha off black_threshold.png
convert test.png -threshold 0% -alpha off black_threshold.png
convert test.png -threshold 80% -alpha off black_threshold.png