how to covert image to 8-bit bmp

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
loosen

how to covert image to 8-bit bmp

Post by loosen »

first to be here to ask help...
i just want to know how to covert image to 8-bit bmp ? I searched in the old posts, but no one helps :(
It doesn't work when using command like 'convert xxx.jpg -colors 256 xxx.bmp' .
Do i need to edit coders/bmp.c ? how ?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to covert image to 8-bit bmp

Post by fmw42 »

do you want 8-bit pseudocolor or 8-bits per r,g,b channel (24-bits total)?

for the former, try

convert image -depth 8 -type palette image.bmp

for the latter try

convert image -depth 8 -type truecolor image.bmp
Post Reply