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...
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.
OTOH it might be cheaper (relatively) on phones as they can offload the work to hardware components and ramp CPU down (or avoid ramping it up).
with the resulting out.webp being 285 932 bytes, so it seems apng does a very good job here, unless I'm using suboptimal options for webp.
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?
Formats do not provide HW acceleration, implementations do. 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/
[2] https://techreport.com/news/34306/qualcomm-snapdragon-855-sp...
https://chrome.google.com/webstore/detail/h264ify/aleakchihd...
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/36000060737...