Re:Upcoming Changes to PNG Support at Twitter
by xyzzy_plugh on Thursday December 27, 2018 @02:40PM
(#18771936)
It looks like pngquant can change palette subtly, but for e.g. pixel art or art with carefully selected palettes what are the downsides?
Re:Upcoming Changes to PNG Support at Twitter
by pornel on Thursday December 27, 2018 @07:44PM
(#18773968)
Pixel art is likely to have only a few dominant colors, so it should convert losslessly or nearly so.
Most other quantization implementations unconditionally drop a few least significant bits of colors, giving images a posterized look of a 16-bit console. pngquant tries very hard not to do that, as its goal is to have no visible loss, just smaller files.
The PNG-8 variant is 3-4 times smaller than a truecolor PNG, which is why Twitter is allowing it.
[1]: https://pngquant.org/