magick input.png -threshold 50% output.png

Category: Media & Conversion

magick input.png -threshold 50% output.png

Convert an image to black and white

Converts the image to pure black and white: every pixel brighter than 50% becomes white and everything else becomes black. The result is a 1-bit image that compresses very well. Adjust the percentage to shift the cutoff.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.