-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evolve the next-generation image formats audit (AVIF) #12295
Comments
We should definitely revise the audit text to include AVIF (and calling webp "next-gen" may be a bit dated by now :). Dropping webp advice would be kind of sad since it's so great that you can use it almost everywhere now. One option is to graduate it from "next-gen" to One extra layer here is that the static compression ratio estimate is only the backup for a measured compression estimate done in
12:1 seems like it could be ok (if I'm understanding your suggestion right), though we want to lean very conservative with the estimate (see the webp comment you quote from |
#11464 also mentioned dropping JPEG 2000 references in the audit since it's pretty clear that's not happening and WebP is good to go if you need a "next-gen" solution in Safari today. |
For reference:
From the look of this, if there are any plans to add AVIF support to canvas's If that's not feasible today, we won't have customized, per-image advice and will probably miss more dramatic savings estimates in some cases, but we can still list good opportunities in using AVIF for next-gen encoding using a fixed ratio. |
After discussing our encoding options further with the AVIF team:
I think a fixed ratio approach could also very much make sense here. |
Proposal:
|
I would be supportive of Patrick's proposed direction for the implementation here. @brendankenny @paulirish @connorjclark wdyt? |
tl;dr: Could we update the next-gen formats audit to provide AVIF savings estimates?
Background
WebP has been around for a number of years now with support recently hitting 92% of browsers worldwide. In the years since it was introduced, another promising format has landed in browsers - AVIF (supported in Chromium) (support is 62% globally), and coming to Firefox 88-90. AVIF offers up to a 50% improvement in compression over JPEG and some estimates suggest a 20% improvement over WebP.
Some developers are seeing savings from switching to AVIF of up to 25% (based on payload bytes) with up to a 90ms saving to LCP at P75.
Current Lighthouse audit
Our current
serve images in next-gen formats
audit source estimates potential savings based on conversion figures for JPEG compression ratios (8:1) and WebP (10:1).Proposal
What if we evolved this approach to either:
<picture>
, consider adding AVIF as a source too)What are the potential savings estimates for AVIF?
The AVIF team at Google have confidence in the 50% savings number (compared to JPEG) being accurate and the one we should use for tooling purposes (as of today) if we need a multiplier for estimates. Further evidence to back this number up includes:
lighthouse/lighthouse-core/audits/byte-efficiency/uses-webp-images.js
Lines 56 to 65 in 1ca0e7f
I think encouraging use of AVIF could help developers improve their Largest Contentful Paint when its an image. This may also give us a chance to revise the current audit text to include AVIF generally.
Would love to hear what folks think. cc @paulirish @connorjclark @patrickhulce
The text was updated successfully, but these errors were encountered: