I'm trying to convert 8bpp bitmaps to 1bpp for use with a receipt printer. I can get the correct depth thusly:
Code: Select all
convert -monochrome -colors 2 -depth 1 source.bmp out.bmp
However, this gives me a colormap where 0 => black and 1 => white. The printer, stupidly, ignores the palette in the file and assumes 1 is black. Is there any way to either invert the colormap in the 1bpp file, or explicitly define the colormap during conversion from 8bpp to 1bpp?