DentonW / DevIL

Developer's Image Library (DevIL) is a cross-platform image library utilizing a simple syntax to load, save, convert, manipulate, filter, and display a variety of images with ease. It is highly portable and has been ported to several platforms.
http://openil.sourceforge.net/
GNU Lesser General Public License v2.1
446 stars 137 forks source link

IL_PNG_ALPHA_INDEX colour-key doesn't work #23

Closed bcampbell closed 8 years ago

bcampbell commented 9 years ago

IL_PNG_ALPHA_INDEX is supposed to let the user specify a single colour index which should be treated as transparent, but the implementation is wrong. It's not too hard to fix, but I think the "proper" solution is to just support palettes with alpha values, as per commit c0e964de.

I propose IL_PNG_ALPHA_INDEX should be removed, or at least deprecated.

bcampbell commented 8 years ago

handled in c0e964dec6feec92ffbd7ab475793a86488b5f7e. IL_PNG_ALPHA_INDEX is now deprecated in favour of properly using the transparency info in the palette. If the palette has any non-opaque colours, a tRNS chunk will be added to the output png file.