4 ms·
Also worthwhile to explore other image formats, of course. For photos (like lenna.png), jpg is nearly always a better choice if you're ok with lossless, even b
by georgemcbay 13y ago
Also worthwhile to explore other image formats, of course.
For photos (like lenna.png), jpg is nearly always a better choice if you're ok with lossless, even better than png with the tricks mentioned in the article.
Of course there are some situations where png simply has features you want, like an alpha-channel, but some people even work around that (eg. in some videogames) by encoding the image part as jpg and a separate 8-bit alpha map in a lossless format to go with it and these are merged back together at load time. Not really suitable for the web, though (possible, but wildly inefficient compared to just letting the browser do the compositing).