lossy WebP compression (from lib)

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

pingo could do some lossy image transformations for web to decrease the filesize. this 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-lossy=N target

WebP lossy

original file: flowersp.png (346.52 KB): lossy WebP
original pingo -webp-lossy=100 pingo -webp-lossy=90
flowersp - original flowersp - webp lossy 100 flowersp - webp lossy 90
346.52 KB 147.89 KB (0.10s) 107.49 KB (0.11s)
dssim - butteraugli 0.00018437 - 1.524791 0.00037798 - 1.817673
pingo -webp-lossy=80 pingo -webp-lossy=70 pingo -webp-lossy=60
flowersp - webp lossy 80 flowersp - webp lossy 70 flowersp - webp lossy 60
88.00 KB (0.09s) 78.96 KB (0.10s) 75.26 KB (0.09s)
0.00080390 - 3.272539 0.00129940 - 3.484837 0.00159889 - 3.525719
pingo -webp-lossy=50 pingo -webp-lossy=40 pingo -webp-lossy=30
flowersp - webp lossy 50 flowersp - webp lossy 40 flowersp - webp lossy 30
71.39 KB (0.10s) 67.29 KB (0.09s) 62.85 KB (0.09s)
0.00191442 - 3.835021 0.00242482 - 4.514079 0.00316439 - 5.983270
pingo -webp-lossy=20 pingo -webp-lossy=10 pingo -webp-lossy=1
flowersp - webp lossy 20 flowersp - webp lossy 10 flowersp - webp lossy 1
58.73 KB (0.10s) 54.09 KB (0.10s) 48.39 KB (0.09s)
0.00419419 - 7.392307 0.00634422 - 9.754725 0.01206531 - 19.590445

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