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: 11015
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-02-22T08:04:04-07:00

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: 11015
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-02-22T10:28:18-07:00

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: 11015
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-02-23T08:09:17-07:00

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

Post Reply