Force 24-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
tc-

Force 24-bit bmp

Post by tc- »

I have a 2 color indexed bitmap, how can I force it into a 24-bit bmp?

The reason I want to do thins is because I have an application that can only read 24-bit bmp files.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Force 24-bit bmp

Post by fmw42 »

tc- wrote:I have a 2 color indexed bitmap, how can I force it into a 24-bit bmp?

The reason I want to do thins is because I have an application that can only read 24-bit bmp files.

try

convert 2color.bmp -type truecolor 24bit.bmp

if you are on Q16 IM, you may have to add -depth 8 to force to 8-bits per channel.
tc-

Re: Force 24-bit bmp

Post by tc- »

Worked perfectly with -type truecolor.

Thank you!
Post Reply