-
Notifications
You must be signed in to change notification settings - Fork 322
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
Add AVIF avatars #462
Add AVIF avatars #462
Conversation
Why not add WebP at the same time? |
It didn’t seem worth the trouble — in a future where all browsers support AVIF, there’s no point in also serving WebP. Since Firefox and Chrome will already support AVIF soon, it’d only benefit Safari, and only until they add AVIF support. |
@mathiasbynens just out of curiosity, did you generate avatars with |
@sayjeyhi I used Squoosh for a few avatars to easily (visually) find the “optimal” settings, and then used Update: I just found out @kornelski has an alternative PNG/JPEG to AVIF converter: https://github.com/kornelski/cavif I’ll try this next time! |
“soon” seems optimistic esp. with regards to FF. |
Oh? You probably have more background than I do here. I was assuming it wouldn’t take too long anymore since Firefox has had AVIF support behind a flag for a while now but my assumption may be wrong. Either way I’m not opposed to also adding WebP in a separate PR 👍 I was just explaining my thinking. |
Gonna go ahead and merge this since it seems uncontroversial. |
Across all avatars, this saves 136.6 kB:
@RReverser @surma @jakearchibald Thanks for adding AVIF support to Squoosh!