Page 1 of 1

png to black and white 1 bit bmp

Posted: 2010-03-23T06:07:53-07:00
by nirious
Hi,

I am new to this program.
I am trying to convert a black and white 24 bit png file to a black and white (1 bit) monocolor bmp file. So no grayscale.
Further I am only intersted in the top left part of the png file.
I must be doing something wrong because it creates the image (size and dpi are OK), but it is 256 indexed color (8bit). :?

Here is what I have:

Code: Select all

convert "c:\input.png" -crop 470x470+0+0 +repage -monochrome -depth 1 -type Bilevel "c:\output.bmp"

Re: png to black and white 1 bit bmp

Posted: 2010-03-23T10:25:35-07:00
by fmw42
Not sure this does any better (still type grayscale), but try

convert image.png -colors 2 +dither -type bilevel image.bmp


see also

http://www.imagemagick.org/Usage/formats/#bmp