2 ms·
For graphics with only a few colors you can save a few extra bits by moving to lower bit depths. PNG explicitly supports an 8-bit palette color mode that is pr
by willis936 5y ago
For graphics with only a few colors you can save a few extra bits by moving to lower bit depths. PNG explicitly supports an 8-bit palette color mode that is pretty lean. You can even specify fewer than 8 bpp if your palette is small enough to have its cardinality fall within lower powers of 2.
I recall PNG8 not being well supported in some applications. I've run into this with game engines, which I found strange since asset size is an important thing to keep in mind.
- giantrobot 5y agoIE6 and below had no end of trouble with PNG transparency. IIRC it only supported transparency correctly on PNG8 images but only in img tags, not backgrounds, and ignored the alpha channel entirely on PNG32. There were some IE-specific hacks you could use with their proprietary CSS extensions but they were really annoying. I think IE7 finally fixed the transparency bugs but since there was still a huge IE6 cohort it was still a crapshoot relying on transparent PNGs.