devongovett/png.js — pull request #7 by eddyb (2012-10-16 17:14:21+00:00)
Title: Node.js/palette conversion: fixed palette size when transparency is missing.

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 of `c*4` (as it is RGBA, not just RGB), and that its length depended on the transparency map (which didn't exist in my case).