Creating a minochrome 2 bit image

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?".
Locked
troyd1
Posts: 73
Joined: 2007-07-29T17:13:19-07:00

Creating a minochrome 2 bit image

Post by troyd1 »

I am trying to create a monochrome 2 bit image. I am doing the folowing:
convert -size 1875x938 xc:white "c:\temp\graphics\X1931_41390_1.bmp"
convert "c:\temp\graphics\X1931_41390_1.bmp" -fill black -pointsize 67 -font "c:\pcshare\pcgraphics\itweb\fonts\ZAFCHAB.TTF" -size 1162 -gravity center -background #00000000 caption:@c:\temp\graphics\4_T_1.TXT -gravity northwest -geometry +375+112 -composite -fill black -pointsize 60 -font "c:\pcshare\pcgraphics\itweb\fonts\ARIAL.TTF" -size 1162 -gravity center -background #00000000 caption:@c:\temp\graphics\4_T_2.TXT -gravity northwest -geometry +375+206 -composite BMP2:"c:\temp\graphics\1931_41390_1.bmp"

This is giving me an 8 bit graphic. I need a 2 bit graphic. The printer we use requires that. Please help.

Thanks, Troy

el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Creating a minochrome 2 bit image

Post by el_supremo »

Add
-type BiLevel
after -composite

Note that the brief output from identify will indicate that it's 8-bit but doing a -verbose will show that the channel depth is 1-bit.

Pete

troyd1
Posts: 73
Joined: 2007-07-29T17:13:19-07:00

Re: Creating a monochrome 2 bit image

Post by troyd1 »

Thanks, that worked.

Locked