by TacticalCoder · 3y ago · 0 comments
For a start it's 2023 and all browsers do support lossless webp [1].
Lossless webp (webp can be both lossy or lossless) is not only typically smaller than most optimized PNG files but also compresses faster than the optimized PNG encoders.
So, basically, the main reason to use PNG in 2023 for anything Web related is if you like wasting bandwith. For 99.95% of the PNG files (something huge like that) are smaller when encoded with lossless webp.
Heck, even my Emacs supports webp images.
Then other formats are already knocking on the door and promise even better compression than webp.
Time and time again an article pops up showing how marginal the difference is, if at all.
if you take usual PNGs from the wild, WebP lossless is 42-45 % more dense
disclaimer: I'm a co-author of Zopfli and ZopfliPNG, and usually best PNG optimizers are based on Zopfli. I'm also the author of WebP lossless.