Koldflux Media Lab: WebP vs JPEG vs PNG, measured October 27, 2026 on macOS (Apple silicon). Scripts: measure.sh -> measure.py (encode every quality 10..100, decode, SSIM), analyze.py (matched-quality tables), extra.py (controls, JPEG conversion test), figure.py. Photo: CC0 Wikimedia Commons 'Harbour chapel, red boat, Nea Artaki, Evia Greece.jpg' (5999x3575), scaled to 2000 px wide with ffmpeg lanczos. Graphic: our own graphic.html rendered by Chromium 153 to 1600x720. SSIM: ffmpeg ssim filter on RGB (gbrp), value 'All'. Bytes are real files. {"cjpeg": "libjpeg-turbo version 3.1.3 (build 20251210)", "cwebp": "1.6.0", "ffmpeg": "ffmpeg version 8.1.2 Copyright (c) 2000-2026 the FFmpeg developers", "pillow": "12.2.0"} === photo 2000x1192 q jpeg_bytes jpeg_ssim webp_bytes webp_ssim 10 78158 0.818275 78202 0.848182 11 84555 0.827981 81448 0.853558 12 90721 0.837685 84014 0.857132 13 96977 0.846277 87442 0.861619 14 102528 0.852081 89540 0.864365 15 108177 0.858250 91300 0.866666 16 113848 0.863290 95208 0.871885 17 119300 0.868110 96938 0.874206 18 124723 0.872450 99316 0.876534 19 129454 0.875199 101570 0.879512 20 134172 0.878608 104996 0.882588 21 139514 0.882249 107586 0.884807 22 144290 0.885186 109848 0.887183 23 149252 0.887747 112336 0.889257 24 153784 0.890675 114588 0.891588 25 158022 0.892812 117300 0.893239 26 162594 0.895347 120372 0.895574 27 166980 0.897528 123544 0.897953 28 171161 0.899914 127080 0.900537 29 174631 0.901529 130642 0.902824 30 178817 0.903231 133180 0.903524 31 182340 0.904711 136162 0.905801 32 186250 0.906373 138132 0.907246 33 190638 0.907906 140204 0.907960 34 193235 0.909207 142492 0.910825 35 197966 0.910765 145156 0.910921 36 201977 0.912408 148364 0.913574 37 204358 0.913316 150870 0.914724 38 208918 0.914718 153012 0.917498 39 212004 0.915575 157240 0.917741 40 213697 0.916257 159310 0.918607 41 218953 0.917854 161928 0.917461 42 221515 0.918536 165072 0.920302 43 224125 0.919374 165728 0.920726 44 228831 0.920853 169528 0.922158 45 231268 0.921467 172582 0.923437 46 235592 0.922574 172496 0.924274 47 237543 0.923255 175900 0.924461 48 240315 0.923789 179376 0.924473 49 245771 0.925219 181208 0.926154 50 246770 0.925646 182772 0.929890 51 247743 0.926074 184918 0.930442 52 253017 0.927250 188612 0.930160 53 256466 0.927799 190150 0.932524 54 258918 0.928595 192622 0.933391 55 262078 0.929486 196600 0.934465 56 266182 0.930410 196600 0.934465 57 270349 0.931177 201690 0.935961 58 274765 0.932082 202058 0.933089 59 277599 0.932629 205026 0.935596 60 281109 0.933410 207500 0.933664 61 286262 0.934365 210932 0.937223 62 289242 0.935091 212550 0.936112 63 294862 0.936106 214708 0.936781 64 298258 0.936948 218220 0.940640 65 303838 0.937876 222292 0.940194 66 308240 0.938755 223044 0.941796 67 312954 0.939531 227404 0.941629 68 319557 0.940561 227404 0.941629 69 324607 0.941384 233904 0.943527 70 332122 0.942552 233904 0.943527 71 338368 0.943598 239070 0.944543 72 343258 0.944443 242578 0.945413 73 350540 0.945276 245474 0.945986 74 361099 0.946575 248262 0.946243 75 363529 0.947027 251896 0.947955 76 371860 0.948104 261706 0.949451 77 384164 0.949477 270454 0.949651 78 394355 0.950351 286904 0.953209 79 401815 0.951381 296050 0.955003 80 413013 0.952516 309340 0.956987 81 426688 0.953863 318692 0.958352 82 438545 0.954793 337648 0.960710 83 455016 0.956081 350178 0.962073 84 469023 0.957314 366482 0.963595 85 483082 0.958493 382174 0.965082 86 504677 0.959827 402652 0.966762 87 520185 0.961129 418464 0.967843 88 547827 0.962679 449120 0.969613 89 567736 0.964092 467548 0.970473 90 602019 0.965771 499806 0.972217 91 631458 0.967302 521922 0.972835 92 663644 0.968884 558800 0.974433 93 717226 0.970780 610318 0.975963 94 782251 0.972741 659310 0.977051 95 862607 0.974737 703784 0.977954 96 964432 0.976985 753482 0.978803 97 1087246 0.979056 822132 0.979541 98 1241366 0.980964 884818 0.979961 99 1535491 0.982729 947616 0.980083 100 1750813 0.983562 972562 0.980185 lossless webp 2647254 bytes, pixels identical to reference: True optimized png 3398246 bytes, pixels identical to reference: True === graphic 1600x720 q jpeg_bytes jpeg_ssim webp_bytes webp_ssim 10 23471 0.935062 16324 0.956769 11 24677 0.940797 16664 0.962113 12 25916 0.946282 17128 0.963854 13 27560 0.944062 17414 0.968459 14 28343 0.945842 17630 0.973099 15 28823 0.949578 18018 0.974330 16 29977 0.952424 18214 0.973866 17 31359 0.951988 18420 0.975192 18 32725 0.956334 18590 0.975038 19 33925 0.960430 18978 0.976413 20 34258 0.961269 19262 0.983443 21 35329 0.960972 19364 0.983490 22 35821 0.964495 19262 0.985004 23 36727 0.963698 19722 0.984636 24 37309 0.965744 20010 0.984677 25 37887 0.966081 19996 0.985734 26 38545 0.966494 20160 0.985849 27 39244 0.968059 20522 0.985208 28 39843 0.968522 20800 0.986080 29 40311 0.968149 21072 0.985072 30 40969 0.968743 21470 0.986884 31 41449 0.967609 21796 0.987004 32 42363 0.968459 22222 0.987097 33 42857 0.968844 22366 0.987162 34 43220 0.969187 22602 0.988182 35 44155 0.969734 22934 0.988152 36 44843 0.969851 23394 0.987400 37 45158 0.970176 23804 0.988394 38 45857 0.970672 24326 0.988471 39 46309 0.970237 24576 0.988144 40 46839 0.971478 24890 0.988491 41 47566 0.971832 25032 0.988480 42 47879 0.972314 25482 0.988848 43 48360 0.972263 25894 0.988227 44 48941 0.973002 26202 0.988391 45 49221 0.973083 26354 0.988321 46 49940 0.972678 26646 0.988445 47 50206 0.973060 27080 0.988562 48 50649 0.973294 27296 0.988215 49 51237 0.973954 27588 0.988573 50 51495 0.974466 27908 0.988232 51 51715 0.974676 27976 0.988335 52 52429 0.975461 28080 0.988231 53 52867 0.975921 28374 0.988509 54 53549 0.976500 28766 0.988654 55 54159 0.977063 28708 0.988850 56 54757 0.977914 28906 0.989226 57 55371 0.978460 29300 0.989443 58 55975 0.978435 29450 0.989314 59 56419 0.979004 29594 0.989463 60 56913 0.979573 29846 0.989461 61 57854 0.980216 30112 0.989537 62 58345 0.980500 30328 0.989370 63 59113 0.980782 30596 0.989502 64 59656 0.981170 30888 0.989598 65 60319 0.981247 30866 0.989687 66 61099 0.980815 31228 0.990278 67 61899 0.981029 31596 0.990242 68 62941 0.981470 31786 0.990323 69 63677 0.981398 32098 0.990494 70 64798 0.981681 32120 0.990591 71 65728 0.982195 32920 0.990326 72 66632 0.982346 32990 0.990961 73 67830 0.982969 33268 0.990674 74 69268 0.983594 33526 0.991145 75 69782 0.983725 33758 0.990640 76 70958 0.983983 34614 0.991458 77 72731 0.984322 35716 0.991164 78 74189 0.984307 36382 0.991972 79 75193 0.984657 38226 0.991898 80 76944 0.985095 38768 0.992266 81 78576 0.985827 40076 0.992325 82 80377 0.986117 40740 0.992442 83 82496 0.986189 41898 0.992406 84 84714 0.986958 43026 0.992859 85 86795 0.987379 44652 0.992793 86 89434 0.987886 45446 0.992953 87 91789 0.988144 47584 0.993188 88 95258 0.988717 49090 0.993290 89 97928 0.989156 50342 0.993645 90 102047 0.989606 52792 0.993808 91 106152 0.990102 55600 0.994007 92 109957 0.990698 57410 0.994148 93 115569 0.990991 61124 0.993907 94 122350 0.991733 64158 0.994078 95 130006 0.992264 67142 0.994110 96 140410 0.992764 70778 0.994373 97 151680 0.993589 73946 0.994635 98 165147 0.994198 75656 0.994658 99 184587 0.994583 76952 0.994696 100 201267 0.994800 78886 0.994717 lossless webp 35846 bytes, pixels identical to reference: True optimized png 88836 bytes, pixels identical to reference: True === photo: smallest real file reaching each SSIM target target jpeg(q,bytes,ssim) webp(q,bytes,ssim) webp_vs_jpeg 0.9 q29 174,631 0.9015 q28 127,080 0.9005 -27.2% 0.93 q56 266,182 0.9304 q51 184,918 0.9304 -30.5% 0.95 q78 394,355 0.9504 q78 286,904 0.9532 -27.2% 0.97 q93 717,226 0.9708 q89 467,548 0.9705 -34.8% 0.98 q98 1,241,366 0.9810 q99 947,616 0.9801 -23.7% 0.99 not reached not reached - 0.993 not reached not reached - same quality number q75: jpeg 363,529 B ssim 0.9470 | webp 251,896 B ssim 0.9480 same quality number q80: jpeg 413,013 B ssim 0.9525 | webp 309,340 B ssim 0.9570 same quality number q85: jpeg 483,082 B ssim 0.9585 | webp 382,174 B ssim 0.9651 same quality number q90: jpeg 602,019 B ssim 0.9658 | webp 499,806 B ssim 0.9722 max ssim: jpeg 0.983562, webp 0.980185 lossless: webp 2,647,254 B vs png 3,398,246 B (-22.1%), identical: webp True png True === graphic: smallest real file reaching each SSIM target target jpeg(q,bytes,ssim) webp(q,bytes,ssim) webp_vs_jpeg 0.9 q10 23,471 0.9351 q10 16,324 0.9568 -30.5% 0.93 q10 23,471 0.9351 q10 16,324 0.9568 -30.5% 0.95 q16 29,977 0.9524 q10 16,324 0.9568 -45.5% 0.97 q37 45,158 0.9702 q14 17,630 0.9731 -61.0% 0.98 q61 57,854 0.9802 q20 19,262 0.9834 -66.7% 0.99 q91 106,152 0.9901 q66 31,228 0.9903 -70.6% 0.993 q97 151,680 0.9936 q87 47,584 0.9932 -68.6% same quality number q75: jpeg 69,782 B ssim 0.9837 | webp 33,758 B ssim 0.9906 same quality number q80: jpeg 76,944 B ssim 0.9851 | webp 38,768 B ssim 0.9923 same quality number q85: jpeg 86,795 B ssim 0.9874 | webp 44,652 B ssim 0.9928 same quality number q90: jpeg 102,047 B ssim 0.9896 | webp 52,792 B ssim 0.9938 max ssim: jpeg 0.994800, webp 0.994717 lossless: webp 35,846 B vs png 88,836 B (-59.6%), identical: webp True png True === controls photo: reference against itself, SSIM 1.000000 graphic: reference against itself, SSIM 1.000000 === an existing JPEG converted to WebP (photo, the q85 JPEG from measure.py stands in for a camera or CMS JPEG) source JPEG q85: 483,082 bytes lossless WebP of the decoded JPEG: 1,983,852 bytes PNG of the decoded JPEG: 2,842,465 bytes lossy WebP q75 of the decoded JPEG: 253,298 bytes, SSIM against the original reference 0.9384 (the JPEG itself: 0.9585) lossy WebP q85 of the decoded JPEG: 378,874 bytes, SSIM against the original reference 0.9487 (the JPEG itself: 0.9585) === the live Koldflux converters, October 27, 2026 (conv-probe.cjs, headless Chromium 153 on the Koldflux VPS) /tools/convert/image/jpg-to-webp with enc/photo-q85.jpg (483,082 bytes): download converted.webp 535,696 bytes (VP8 lossy, ICC profile kept, 2000x1192) SSIM against the decoded source JPEG 0.990577; against the photo reference 0.952974 (the source JPEG itself: 0.9585) /tools/convert/image/png-to-webp with graphic-ref.png (90,108 bytes): download converted.webp 58,882 bytes (VP8 lossy), SSIM 0.994137, pixels not identical The converters encoded at quality 0.92 through the browser Canvas API. After this test the converter gained 85% and 75% choices and a size warning; 92% stays the default.