iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
114 stars 32 forks source link

PNG image loading #83

Closed iamgreaser closed 9 years ago

iamgreaser commented 11 years ago

Basically, PNG compresses better than TGA.

We already have zlib as a dependency, and with that in place it's not hard to write a basic PNG loader, considering I pulled it off with 121 lines of Python.

iamgreaser commented 11 years ago

Preliminary support is in place (8bpc RGB/RGBA only for now). I'd like this issue closed once indexed-colour and maybe greyscale are implemented, as well as Adam7 interpolation. Not really intending to add 16bpc stuff, but I might add 1/2/4bpc indexed colour.

rakiru commented 11 years ago

It could cause some confusion if only some PNG formats worked, as to most users, all PNGs are the same.

iamgreaser commented 11 years ago

Yeah, that's why this issue isn't closed yet.

Indexed and greyscale are implemented. Hoping to get 1/2/4bpc implemented, and I suspect I'll be able to support 16bpc w/o any major issues, too.

I'll need to get my head around what an interlaced image actually looks like.

iamgreaser commented 9 years ago

Ah why is this still open? All the important code is in place. If anyone actually needs 1/2/4bpc stuff let me know and I'll implement it, otherwise here's another one for the "closed" pile.