WebP support

Bibs said on 02/13/2018

Hello cédric,

I would like to know if you plan to include WebP in pingo?

cédric (dev) said on 02/14/2018

no, this is out of the scope

Bibs said on 02/15/2018

Why? Both WebP's lossless and lossy are much better than PNG and JPEG. It could be nice to include pingo :

Lossless : https://developers.google.com/speed/webp/docs/webp_lossless_alpha_study
Lossy : https://developers.google.com/speed/webp/docs/webp_study

cédric (dev) said on 02/15/2018

Lossless : https://developers.google.com/speed/webp/docs/webp_lossless_alpha_study
Lossy : https://developers.google.com/speed/webp/docs/webp_study

i think a careful selection of tools/samples/settings could show something more fair. anyway if you still want WebP, i suggest you use their tools

Bibs said on 02/15/2018

I don't see what's unfair. I run my own tests and WebP is always better than PNG. It's time to leave PNG and JPEG for a new format. Please re-consider WebP.

carlos said on 01/25/2019

up firefox 65 now image format webp support and edge become choromium, i think pingo should start webp compression

cédric (dev) said on 02/02/2019

pingo 0.99 beta1 has an experimental PNG to WebP converter and WebP optimizer. it is very primitive implementation atm, in early development stage and barely tested. note that those alternative modes could not be always better — e.g. it could not perform well on pics. some features:

  • alternative lossy or lossless modes
  • naive auto-lossy selection
  • multi threading/processing, including (sub)folder(s)
  • image data transformations

auto & -palette

auto-lossy
pajarito7.png — G1820 @ 2.7 Ghz - 2 Go RAM - Windows 7
tool version options time dssim butteraugli in out
cwebp 9cf9841 -mt 0.07s 0.00124641 5.450849 56.45 KB 18.01 KB
cwebp 9cf9841 -mt -q 100 0.08s 0.00037648 4.475920 56.45 KB 36.39 KB
cwebp 9cf9841 -mt -near_lossless 50 0.35s 0.00002878 1.514932 56.45 KB 29.87 KB
cwebp 9cf9841 -mt -near_lossless 1 0.35s 0.00012375 2.009474 56.45 KB 22.80 KB
pingo 0.99 beta 1 - 0.17s 0.00000951 2.142229 56.45 KB 23.14 KB
pingo 0.99 beta 1 (palette) quality 25 0.15s 0.00011411 5.604958 56.45 KB 11.57 KB
auto-lossy
big-capture.png — G1820 @ 2.7 Ghz - 2 Go RAM - Windows 7
tool version options time dssim butteraugli in out
cwebp 9cf9841 -mt 0.20s 0.00081130 2.882838 152.56 KB 169.41 KB
cwebp 9cf9841 -mt -q 100 0.23s 0.00004111 2.144726 152.56 KB 297.08 KB
cwebp 9cf9841 -mt -near_lossless 50 0.35s 0.00002701 0.893930 152.56 KB 25.47 KB
cwebp 9cf9841 -mt -near_lossless 1 0.23s 0.00034892 3.110557 152.56 KB 24.57 KB
pingo 0.99 beta 1 - 0.41s - 1.915263 152.56 KB 22.47 KB

-soft & -average

alternative lossy
tweet.png — G1820 @ 2.7 Ghz - 2 Go RAM - Windows 7
tool version options time dssim butteraugli in out
cwebp 9cf9841 -mt -q 100 0.06s 0.00146015 8.462865 70.17 KB 20.84 KB
cwebp 9cf9841 -mt -near_lossless 90 0.22s 0.00003277 0.768917 70.17 KB 34.40 KB
cwebp 9cf9841 -mt -near_lossless 50 0.23s 0.00011050 1.735309 70.17 KB 27.75 KB
cwebp 9cf9841 -mt -near_lossless 1 0.21s 0.00062167 3.173888 70.17 KB 24.05 KB
pingo 0.99 beta 1 (soft) -quality=60 0.24s 0.00012928 1.196671 70.17 KB 30.16 KB
pingo 0.99 beta 1 (soft) 0.21s 0.00007390 0.694347 70.17 KB 30.30 KB
pingo 0.99 beta 1 (soft) -quality=80 0.18s 0.00007316 0.694347 70.17 KB 30.79 KB
pingo 0.99 beta 1 (soft) -quality=90 0.17s 0.00003153 0.607343 70.17 KB 36.21 KB
pingo 0.99 beta 1 (soft) -quality=100 0.17s 0.00003021 0.478465 70.17 KB 36.72 KB
alternative lossy
apple.png — G1820 @ 2.7 Ghz - 2 Go RAM - Windows 7
tool version options time dssim butteraugli in out
cwebp 9cf9841 -mt -near_lossless 1 0.49s 0.00024198 6.910768 252.57 KB 102.71 KB
cwebp 9cf9841 -mt -q 100 0.11s 0.00031453 2.752150 252.57 KB 49.97 KB
pingo 0.99 beta 1 (soft) -quality=10 0.34s 0.00017974 1.354149 252.57 KB 81.87 KB
pingo 0.99 beta 1 (average) 0.27s 0.00020492 1.289866 252.57 KB 78.34 KB
pingo 0.99 beta 1 (average) -quality=10 0.26s 0.00059149 1.956066 252.57 KB 58.33 KB

sRGB conversion (done by all lossy modes)

sRGB conversion
iccp.png — G1820 @ 2.7 Ghz - 2 Go RAM - Windows 7
tool version options time ICC profile in out
cwebp 9cf9841 -mt -near_lossless 50 -metadata all 0.43s yes 204.35 KB 74.90 KB
cwebp 9cf9841 -mt -near_lossless 1 -metadata all 0.37s yes 204.35 KB 69.00 KB
pingo 0.99 beta 1 (near) -quality=10 0.40s no 204.35 KB 68.51 KB
cwebp 9cf9841 -mt -q 90 -metadata all 0.08s yes 204.35 KB 30.13 KB
pingo 0.99 beta 1 (nopre) 0.13s no 204.35 KB 30.68 KB

lossless WebP optimization

use this function on test files only. does not support ICC profiles yet

lossless optimization
G1820 @ 2.7 Ghz - 2 Go RAM - Windows 7
tool version options time in out
1-un.webp
cwebp 9cf9841 -mt -lossless 0.05s 21.89 KB 18.96 KB
-mt -lossless -m 6 -q 100 0.62s 21.89 KB 18.50 KB
pingo 0.99 beta 1 - 0.09s 21.89 KB 16.56 KB
-s4 0.32s 21.89 KB 14.53 KB
2-un.webp
cwebp 9cf9841 -mt -lossless 0.02s 19.30 KB 16.03 KB
-mt -lossless -m 6 -q 100 0.43s 19.30 KB 15.54 KB
pingo 0.99 beta 1 - 0.06s 19.30 KB 14.88 KB
-s4 0.31s 19.30 KB 14.36 KB
3-un.webp
cwebp 9cf9841 -mt -lossless 1.06s 577.24 KB 466.49 KB
-mt -lossless -m 6 -q 100 3.14s 577.24 KB 283.56 KB
pingo 0.99 beta 1 - 0.90s 577.24 KB 285.56 KB
-s4 2.47s 577.24 KB 283.56 KB
4-un.webp
cwebp 9cf9841 -mt -lossless 0.17s 29.23 KB 25.27 KB
-mt -lossless -m 6 -q 100 1.21s 29.23 KB 24.39 KB
pingo 0.99 beta 1 - 0.10s 29.23 KB 20.90 KB
-s4 0.60s 29.23 KB 18.39 KB
5-un.webp
cwebp 9cf9841 -mt -lossless 0.12s 37.91 KB 30.73 KB
-mt -lossless -m 6 -q 100 0.52s 37.91 KB 15.16 KB
pingo 0.99 beta 1 - 0.10s 37.91 KB 15.20 KB
-s4 0.50s 37.91 KB 15.16 KB
6-un.webp
cwebp 9cf9841 -mt -lossless 1.49s 971.56 KB 803.62 KB
-mt -lossless -m 6 -q 100 13.86s 971.56 KB 788.06 KB
pingo 0.99 beta 1 - 2.67s 971.56 KB 682.65 KB
-s4 11.90s 971.56 KB 672.25 KB
7-un.webp
cwebp 9cf9841 -mt -lossless 0.13s 97.12 KB 74.08 KB
-mt -lossless -m 6 -q 100 1.01s 97.12 KB 72.28 KB
pingo 0.99 beta 1 - 0.27s 97.12 KB 66.03 KB
-s4 0.95s 97.12 KB 64.62 KB
8-un.webp
cwebp 9cf9841 -mt -lossless 0.31s 189.54 KB 147.68 KB
-mt -lossless -m 6 -q 100 2.14s 189.54 KB 145.55 KB
pingo 0.99 beta 1 -s2 0.45s 189.54 KB 147.68 KB
-s4 2.03s 189.54 KB 145.55 KB

comment this