magick input.jpg -colorspace Gray output.jpg

Category: Media & Conversion

magick input.jpg -colorspace Gray output.jpg

Convert an image to grayscale

Converts the image to grayscale by changing its color space. The result keeps one luminance channel, which shrinks files dramatically. Related: -monochrome reduces to pure black and white.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.