Colour to Black and white

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
rkayssar

Colour to Black and white

Post by rkayssar »

Hi,
i have a couple of color TIF images (Green, Pink, and Yellow). i need to convert to black and white through unix command line.
i tried the following:

convert +compress -monochrome ImageName Imageout
convert +compress -type Bilevel ImageName Imageout


commands and they get only converted to grayscale.

My Question is there a command i can run to convert all the images to Black and white without setting a threshold as they differ between images


Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Colour to Black and white

Post by fmw42 »

see my replies at viewtopic.php?f=2&t=15301

please provide a link to your image and an explanation of what you would like to see in your result as to which colors get converted to white or black. Then I or others can try to see what we can do for you.
Post Reply