How to Create bmp of bitdepth = 1

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
chartahir

How to Create bmp of bitdepth = 1

Post by chartahir »

I'm trying to create a bmp image of bitdepth = 1, but unable to do so. The image has always a bitdepth of 32.

How can i do this ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to Create bmp of bitdepth = 1

Post by fmw42 »

I am not sure IM can do that. See BMP formats supported by IM at http://www.imagemagick.org/Usage/formats/#bmp
chartahir

Re: How to Create bmp of bitdepth = 1

Post by chartahir »

I've done it using -monochrome and IM version 6.5, previously with IM version 6.2.8 i was unable to achieve the same.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to Create bmp of bitdepth = 1

Post by anthony »

did you try -depth 1
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
chartahir

Re: How to Create bmp of bitdepth = 1

Post by chartahir »

No, -depth 1 didn't seem to work,

I'm writing text in image.
But the image is distorted too much when i used -monochrome.

Is there any thing to avoid this ?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to Create bmp of bitdepth = 1

Post by anthony »

-threshold, -ordered-dither

See IM Examples, Quantization and Dithering
http://www.imagemagick.org/Usage/quantize/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply