WebP alternative near-lossless image compression (filter)

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 could be more efficient on RGBA samples with complex structure

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

WebP near-lossless (filter)

original file: orange.png (271.01 KB): alternative near-lossless WebP (lossy)
original pingo -webp-filter=100 pingo -webp-filter=90
orange - original orange - webp near lossless 100 orange - webp near lossless 90
271.01 KB 166.15 KB (0.32s) 165.51 KB (0.31s)
dssim - butteraugli 0.00012855 - 0.743965 0.00012988 - 1.279301
pingo -webp-filter=80 pingo -webp-filter=60 pingo -webp-filter=50
orange - webp near lossless 80 orange - webp near lossless 70 orange - webp near lossless 60
119.58 KB (0.31s) 97.23 KB (0.30s) 80.40 KB (0.32s)
0.00035764 - 1.286202 0.00065931 - 1.374427 0.00108143 - 1.853372

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