WebP optimizer

last modified on 10 February 2020, by Cédric Louvrier

pingo could try to optimize WebP files using better transformations to decrease the filesize. this is done from conversion to PNG to WebP or directly on WebP, without any loss regarding how the image is rendered once fully decoded

N: from 0 to 9 — 0: fast and good compression — 9: slow, but better compression
pingo -sN target
original file: pear.webp (127.46 KB): WebP lossless optimization
original cwebp 1.1.0 -mt -lossless -m 6 -q 100 pingo -s4
pear - original pear - cwebp pear - pingo
127.46 KB 125.81 KB (1.46s) - 44 MB mem 122.63 KB (0.77s) - 22 MB mem
original file: server.webp (40.88 KB): WebP lossless optimization
original cwebp 1.1.0 -mt -lossless -m 6 -q 100 pingo -s4
server - original server - cwebp server - pingo
40.88 KB 40.42 KB (1.64s) - 23 MB mem 34.16 KB (0.35s) - 16 MB mem

WebP (lossless)

PNG to WebP

PNG to WebP on 104 stripped RGBA PNG files
tool saved time memory
cwebp 1.1.0 -m 6 -q 100 -lossless 2613.22 KB 80.81s 1 — (87.36s) 116 MB
pingo 0.99 -s9 2613.83 KB 20.31s 1 — (40.91s) 54 MB
PNG to WebP on 380 unstripped PNG paletted files
tool saved time memory
cwebp 1.1.0 -m 6 -q 100 -lossless 688.35 KB 69.66s 1 — (86.41s) 72 MB
pingo 0.99 -s4 699.15 KB 6.32s 1 — (11.20s) 15 MB
pingo 0.99 -s9 707.51 KB 8.66s 1 — (14.85s) 26 MB

1 with multiprocessing (files) and multithreading

WebP optimizer

optimization of 104 webp files (converted with -m 1 -q 1 from 104 stripped PNG RGBA)
tool saved time memory
cwebp 1.1.0 -m 6 -q 100 -lossless 577.78 KB 80.15s 1 — (86.75s) 116 MB
pingo 0.99 -s9 578.32 KB 20.44s 1 — (38.62s) 69 MB
optimization of 380 webp files (converted with -m 1 -q 1 from 380 unstripped PNG paletted)
tool saved time memory
cwebp 1.1.0 -m 6 -q 100 -lossless 244.10 KB 69.52s 1 — (83.64s) 72 MB
pingo 0.99 -s4 255.28 KB 6.58s 1 — (11.51s) 61 MB
pingo 0.99 -s9 263.67 KB 9.42s 1 — (16.19s) 60 MB

WebP optimizer (2)

WebP lossless optimization
file tool saved time memory
0.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 81.87 KB 2.79s 84 MB
pingo 0.99 -s9 81.87 KB 1.40s 25 MB
1.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 0 KB 0.73s 24 MB
pingo 0.99 -s9 3.97 KB 0.14s 8 MB
2.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 0 KB 0.42s 18 MB
pingo 0.99 -s9 1.19 KB 0.16s 7 MB
3.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 182.93 KB 2.77s 60 MB
pingo 0.99 -s9 182.93 KB 1.78s 32 MB
4.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 0 KB 1.17s 37 MB
pingo 0.99 -s9 6 KB 0.28s 11 MB
5.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 15.57 KB 0.49s 37 MB
pingo 0.99 -s9 15.57 KB 0.36s 19 MB
6.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 0 KB 13.57s 154 MB
pingo 0.99 -s0 112.51 KB 0.91s 72 MB
pingo 0.99 -s9 116.17 KB 5.58s 79 MB
7.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 0 KB 1.01s 32 MB
pingo 0.99 -s9 7.60 KB 0.61s 18 MB
8.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 2.23 KB 2.42s 46 MB
pingo 0.99 -s9 5.64 KB 1.06s 25 MB
9.webp cwebp 1.1.0 -mt -m 6 -q 100 -lossless 12.89 KB 2.05s 45 MB
pingo 0.99 -s9 12.89 KB 1.15s 24 MB