Grayscale Issue while converting from RGB

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Add -colors 256 to your command line to produce a 1 sample per pixel grayscale TIFF image.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Add the -colors option after the input filename:
  • convert F:\sites1\imagemagick\images\DHP0391.jpg -strip -colorspace gray -colors 256 F:\sites1\imagemagick\images\DHP0391_gray_tif.tiff
Post Reply