WebP nigh-lossless image compression

last modified on 29 Frebruary 2020, by Cédric Louvrier

pingo could do alternative and automatic near-lossless transformation for WebP. unlike automatic image compression, this nigh-lossless try to keep and pick a closer distance from original image data

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

WebP nigh-lossless

original file: chrome.png (193.77 KB): alternative near-lossless WebP (lossy)
original pingo -webp-nigh=100 -s9 pingo -webp-nigh=80 -s9
chrome - original chrome - nigh lossless webp 100 chrome - nigh lossless webp 80
193.77 KB 122.93 KB (0.36s) 106.72 KB (0.35s)
dssim - butteraugli 0.00001743 - 0.672454 0.00004129 - 0.842780
pingo -webp-nigh=60 -s9 pingo -webp-nigh=1 -s9
chrome - nigh lossless webp 60 chrome - nigh lossless webp 1
0.00007432 - 1.200708 0.00010293 - 1.456323
100.17 KB (0.36s) 78.28 KB (0.33s)

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-nigh -sN target


do backup before using pingo. this demonstration is an experimental process — barely tested on some files only. it could be less efficient than other well known implementation or tools introduced (or not) in this article