ImageMagick – How to Convert a Photo to Black and White Image

imagemagickimagesjpeglinux

How can I convert a JPEG photo to black and white (not grayscale) image like output of a FAX scanner, by ImageMagick?

Best Answer

According to this forum post:

However, if you want two colors only (black and white), then you need to threshold. For example, to select the color where above will be white and below will be black.

convert <input> -threshold xx% <output>

where xx is in range 0-100 (for percent).

Related Question