WebP near-lossless image compression

last modified on 9 July 2019, by Cédric Louvrier

pingo could do some lossy image transformations for web to decrease the filesize. this lossy transformation is just like the one from libwebp but with other settings

N: from 1 to 100 — 1: smaller filesize, worse quality — 100: bigger filesize, better quality
pingo -webp-near=N target

WebP near-lossless

original file: tweet-coffee.png (54.01 KB): alternative near-lossless WebP (lossy)
original pingo -webp-near=100 pingo -webp-near=70
tweet cofee - original tweet cofee - webp near lossless 100 tweet cofee - webp near lossless 70
54.01 KB 35.78 KB (0.28s) 32.68 KB (0.31s)
dssim - butteraugli 0.00003282 - 1.040261 0.00006205 - 1.214928
pingo -webp-near=50 pingo -webp-near=30 pingo -webp-near=10
tweet cofee - webp near lossless 50 tweet cofee - webp near lossless 30 tweet cofee - webp near lossless 10
29.76 KB 27.78 KB (0.28s) 26.39 KB (0.31s)
0.00012044 - 1.527426 0.00025093 - 1.589608 0.00057617 - 2.796850

compression level

note that the lossless compression level over this transformation can be increased to get smaller filesize by using -sN

N: from 0 to 9 — 0: fast and good compression — 9: slow, but better compression
pingo -webp-near -sN target