[Image-SIG] Converting BMP -> PNG + transparency
Michel-Olivier Rousseau
Michel-Olivier.Rousseau at gameloft.com
Thu Mar 30 17:56:35 CEST 2006
Hello Image-siggers
Here's my problem... I have the following code:
srcImgFileName = ImageFileName + ".bmp"
dstImgFileName = ImageFileName + ".png"
im = Image.open(srcImgFileName)
im.save(dstImgFileName)
The thing is that the transparency in the .bmp file in set to
0xFF00FF... What I want to to is set the transparency index of the .png
file to point the location of the color 0xFF00FF in the palette.
Is there a way to do that?
Thanks a lot
-Oli
More information about the Image-SIG
mailing list