11 ms·
> From time to time I've run an analysis on the use of alternative image formats on the web and it never comes out to be worth it. I just checked the Google ho
by cosmie 8y ago
> From time to time I've run an analysis on the use of alternative image formats on the web and it never comes out to be worth it.
I just checked the Google homepage, and even the New Year's Eve Google Doodle currently being shown is a good ol' GIF, rather than a modern format such as WebP. And this is with me using a desktop Chrome browser that definitively supports WebP.
> Like many things, the costs of switching image formats are definite, but the benefits are questionable.
One easy way to get some of the benefits without incurring the switching costs is to leverage Cloudflare Polish[1]. I've used it at a few places, and have had good experiences. Although the majority of gains came from optimizing images that were poorly optimized to begin with, rather than the incremental improvements that occurred from enabling WebP support.
[1] https://support.cloudflare.com/hc/en-us/articles/360000607372-Using-Polish-to-compress-images-on-Cloudflare https://support.cloudflare.com/hc/en-us/articles/36000060737...
- Avamander 8y agoI don't like WebP because it's either it or HW accelerated browsing - latter I like a tad more because it saves me a bit of battery juice on my laptop.
- TazeTSchnitzel 8y agoThere's the same problem with Google insisting on VP8/9 for YouTube in Chrome. If your Mac only supports h.264 in hardware you'll get better battery life in Safari.
- xvilka 8y agoObviously it is a problem with Apple, not Google. People should just push it more to do the job.
- TazeTSchnitzel 8y agoI don't think Google are free of responsibility. They are prioritising their lower bandwidth over the user's better power usage.
- vetinari 8y agoApple has a bigger share of the blame. They purposely ignore any codec that is outside of their favorites, even if the hardware they ship does support it (i.e. Intel) or doesn't need any hardware support (Vorbis, Flac). On the other hand, they are quick to support any codec, that is problematic to implement elsewhere.
- vosper 8y agoThere's a Chrome extension that forces YouTube to stream h.264 https://chrome.google.com/webstore/detail/h264ify/aleakchihdccplidncghkekgioiakgal?hl=en https://chrome.google.com/webstore/detail/h264ify/aleakchihd...
- acdha 8y agoThey also try it in Firefox but fortunately you can disable webm/webp in about:config and get better battery life and image quality.
- RBO2 8y agoHEIF (based on HEVC and support on MacOS/iOS + Android + Windows) is already way better than JPEG. It also provides HW acceleration. HEIF is made by MPEG. HEIG is extensible (see AVIF fusing the AV1 royalty-free codec). Also an application format (MIAF) will ensure interoperability. While waiting for native browser support, some js implementation would do the job. What else?
- xvilka 8y agoIsn't it a patented algorithm? So it is practically useless.
- RBO2 8y agoI agree with you but hey JPEG also had its own patent issues (https://en.wikipedia.org/wiki/JPEG#Patent_issues https://en.wikipedia.org/wiki/JPEG#Patent_issues).
- zokier 8y ago> HEIF (based on HEVC and support on MacOS/iOS + Android + Windows) is already way better than JPEG. It also provides HW acceleration. Formats do not provide HW acceleration, implementations do. And so far there is zero HW accelerated HEIF implementations for the web.
- jsjohnst 8y ago> And so far there is zero HW accelerated HEIF implementations for the web. You sure of that? Apple[1] and Qualcomm[2] might argue otherwise. [1] https://developer.apple.com/videos/play/wwdc2017/513/ https://developer.apple.com/videos/play/wwdc2017/513/ [2] https://techreport.com/news/34306/qualcomm-snapdragon-855-spreads-its-wings-for-the-5g-future https://techreport.com/news/34306/qualcomm-snapdragon-855-sp...
- RBO2 8y agoI don't know who downvoted you but you're correct. The point is that most devices embed an HEVC hardware decoder.
- maxst 8y ago> I just checked the Google homepage, and even the New Year's Eve Google Doodle currently being shown is a good ol' GIF, rather than a modern format such as WebP. And this is with me using a desktop Chrome browser that definitively supports WebP. new-years-eve-2018-4995722058399744.2-law.gif 299 972 bytes new-years-eve-2018-4995722058399744.2-law.webp 293 636 bytes new-years-eve-2018-4995722058399744.2-law.apng 251 516 bytes Interesting...
- masklinn 8y agoMeanwhile using ffmpeg's default settings it's 63k as h.264 and 45k as h.265.
- BurningCycles 8y agoBut that is lossy compression.
- londons_explore 8y agoStarting a video in most browsers is pretty expensive (it usually loads up various GPU features for hardware video decoding). On some old and buggy machines, that might cause the browser to crash too. Not something Google wants to risk for a doodle - that's why all non-trivial doodles require a click to load.
- 8y ago