Hasty Treat - The New AVIF Image Format Is Unreal
In this Hasty Treat, Scott and Wes talk about AVIF — what it is and how you might use it!
Freshbooks - Sponsor
Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
03:10 - What is AVIF?
- AVIF is derived from the keyframes of an AV1 video
- Royalty free (big deal)
- What about WebP?
- Basically half the file size of a WebP for free, which was already about half the size of a jpeg
- It’s a lossy format — ie it inherently will degrade the image
- https://jakearchibald.com/2020/avif-has-landed/
- No animation
10:53 - How to implement
- Cloudinary is in beta, but you can try it
- Gatsby supports it
- https://squoosh.app/
- Imagemin
- https://github.com/nucliweb/imagemin-avif
- https://avif.io/
- https://github.com/dreampiggy/AVIFQuickLook
- https://github.com/vercel/next.js/pull/20765
Tweet us your tasty treats!
- Scott’s Instagram
- LevelUpTutorials Instagram
- Wes’ Instagram
- Wes’ Twitter
- Wes’ Facebook
- Scott’s Twitter
- Make sure to include @SyntaxFM in your tweets