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: 11077
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-03-30T12:04:57-07:00

Add -colors 256 to your command line to produce a 1 sample per pixel grayscale TIFF image.

User avatar
magick
Site Admin
Posts: 11077
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-03-31T06:11:27-07:00

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