Closed eddyb closed 7 years ago
Sorry I haven't responded sooner. Is there a broken image you could send me to test this with? Thanks!
Cannot remember which image failed (this was a batch operation with images extracted from CSS), but I think it's from deviantart.com. If you really need it, I could try looking for it again. It could be http://st.deviantart.net/minish/main/v7footer/gradient.png or http://st.deviantart.net/minish/main/v7footer/slider_bg.png
For that same batch processing thing, I've also implemented interlacing support, see #8
This image from 4chan is decoded correctly after the fix but not before:
Closing old PRs of mine.
I was testing my code on a non-transparent indexed PNG and some colors were all zeros. After some debugging, I found that the palette was
c*3
bytes long instead ofc*4
(as it is RGBA, not just RGB), and that its length depended on the transparency map (which didn't exist in my case).