SVGZ and lossy compression

original file: lab.png (300.14 KB): svgz container and lossy compression
original WebP (cwebp default) pingo -svgz=16
lab - PNG lab - cwebp lab - svgz lossy
300.14 KB 66.34 KB (0.16s) 39.06 KB (0.13s)
dssim - butteraugli 0.00100984 - 3.728334 0.00082322 - 3.416768

image data enhancement

original file: tomato.png (232.36 KB): enhance details
original -auto=1 -auto=1 -enhance=10
tomato - original tomato - auto1 tomato - auto1 enhance10
232.36 KB 54.55 KB (0.28s) 64.08 KB (0.31s)
dssim - butteraugli 0.00145336 - 3.770774 0.00143575 - 3.695649

set a specific quality factor for JPG

original file: bees.png (170.34 KB): set JPG quality
original pingo -jpgquality=90
bees - original bees - jpgquality90
170.34 KB 34.80 KB (0.09s)

WebP alternative near-lossless image compression (filter)

original file: orange.png (222.65 KB): alternative near-lossless WebP (lossy)
original pingo -webp-filter=40
orange - original orange - webp near lossless 50
222.65 KB 86.25 KB (0.32s)
dssim - butteraugli 0.00089928 - 2.105718

convert JPG to PNG (with filter)

original file: image-optimisation.jpg (254.14 KB): JPG to PNG conversion with more colors
original pingo -pngconvert=8 -pngpalette=100
hand - original hand - original
254.14 KB 63.84 KB (0.78s)

JPG subsampling (chroma subsampling)

original file: rvb.png chroma subsampling
-jpgsample=0 (default) -jpgsample=2
rvb - sample 0 rvb - sample 2
47.44 KB (quality 100) 33.38 KB (quality 100)
1x1,1x1,1x1 (4:4:4) 2x2,1x1,1x1 (4:2:0)

optimize WebP losslessly for web (or PNG to WebP lossless)

original file: zephyr.png (866.12 KB) — paletted WebP encoding
cwebp -mt -lossless -m 6 -q 100 pingo -webp-lossless -s1 pingo -webp-lossless -s4
zephyr - cwebp brute force zephyr - pingo webp s1 zephyr - pingo webp s4
788.06 KB (14.417s) 697.76 KB (1.231s) 672.82 KB (2.989s)

convert PNG to JPG

original file: fruits-iccp-noalpha.png (385.09 KB): PNG to JPG (conversion to sRGB colorspace)
original pingo -jpgconvert
fruits - sRGB PhotoShop fruits - sRGB pingo auto
385.09 KB 67.83 KB (0.12s) - JPG
iCCP chunk (colors profile) converted to sRGB

how to optimize PNG losslessly for web

original file: rose.png (70 KB): remove non-rendered image data
original file pingo -s1
rose rose - pingo
70 KB (3.49s) 31.95 KB (0.13s) - PNG

lossy WebP compression (from lib)

original file: flowersp.png (346.52 KB): lossy WebP
original pingo -webp-lossy=100
flowersp - original flowersp - webp lossy 100
346.52 KB 147.89 KB (0.10s)
dssim - butteraugli 0.00018437 - 1.524791