living li
living li

Reputation: 35

How to convert bmp to png and keep alpha channel?

I have a p.bmp file, it look like has a alpha channel. so i try to convert it to png file by use imagemagick.

But whatever i try, the png file cannot keep the alpha channel:

The p.bmp file:

p.bmp

convert p.bmp p.png

p.png
(source: meteor.com)

convert p.bmp png24:p24.png

p24.png
(source: meteor.com)

convert p.bmp png32:p32.png

p32.png
(source: meteor.com)

Could anyone help me to find the alpha data in the p.bmp file, and convert it to png file?

Upvotes: 1

Views: 1101

Answers (1)

dlemstra
dlemstra

Reputation: 8163

You discovered a bug in ImageMagick. This will be fixed in ImageMagick 6.8.7-9. I am one of the developers for ImageMagick and I just committed the fix to our SVN repository (http://trac.imagemagick.org/changeset/13867).

Upvotes: 2

Related Questions