Page 1 of 1

unable to create bmp images with 256 colors / 8 bit

Posted: 2008-03-03T01:09:09-07:00
by Jens
Hi

I would like to create a BMP image for a Cisco IP phone, which only supports 8bit bmp images but I unable to create or convert an image into a matching format.

I'm using the version "ImageMagick 6.3.9 03/02/08 Q16".

My tests are ending in getting different versions of my image bitmap. I have got PseudoClass and DirectClass images bit 32, 24 or 4 bit but never with 8 bit as it has to be.

Can some help me please with this issue?

Re: unable to create bmp images with 256 colors / 8 bit

Posted: 2008-03-03T13:17:42-07:00
by fmw42
try

convert <infile> -depth 8 <outfile.bmp>

or post your command attempts for us to review.

Also what type of input images are you starting with? Post a link to an example!

Re: unable to create bmp images with 256 colors / 8 bit

Posted: 2008-03-04T00:02:49-07:00
by Jens
Done.

I have converted the gif file weather.gif GIF 90x56 90x56+0+0 PseudoClass 64c 8-bit 800b
into the bmp file weather1.bmp BMP 90x56 90x56+0+0 PseudoClass 256c 8-bit 3kb

Here is a reference image, how it should be: weather2.bmp BMP 90x56 90x56+0+0 PseudoClass 217c 8-bit 5.93359kb.
I have generated this image with PhotoShop, using the "web colors" color table, 8 bit and without RLE.

Thanks a lot for your help ...

Re: unable to create bmp images with 256 colors / 8 bit

Posted: 2008-03-05T18:20:38-07:00
by anthony
If you want 'web colors' try

Code: Select all

-map netscape:
just before writing out the image.

See http://imagemagick.org/Usage/quantize/#web_safe for more detail. Especially note the discussion that follows, and the links to more information about this color palette.