Getting rid of matte channel

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Use MagickSetImageMatte() and set it to MagickFalse. That will remove the alpha channel from your image and subsequently write a 24 bit BMP image.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

The method is in recent versions of ImageMagick. In the mean-time try MagickSetImageType() with a type of TrueColorType.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Ok, set your output file name like this: bmp3:image.bmp. The bmp3 prefix tells ImageMagick not to save the alpha channel.
Post Reply