What is the AVIF Image Format?
By Corporal Punishment |
What is the AVIF format?
AVIF is a relatively new image format with better compression and quality than the popular JPEG, PNG, and WebP formats. AVIF stands for AV1 Image File Format, based on the AV1 video codec developed by the Alliance for Open Media.
AVIF uses the same compression techniques as AV1, such as intra-prediction, transform coding, entropy coding, and loop filtering, to reduce the size of image files without sacrificing visual quality. AVIF supports transparency, animation, color profiles, and HDR (Unlike WebP).
One of the main advantages of AVIF is that it can achieve much higher compression ratios than JPEG and PNG and even WebP while maintaining or improving the image quality.
The size reduction is significant to developers because bandwidth cost money - trust us MajorGeeks push a LOT of bandwidth (so keep that in mind when viewing our page ad blocking crowd - it's pricey.) Also, page speed is important to the end-user experience and to Google search algorithms. If all things are equal, the faster page may rank higher.
For example, in this image of my dogs (Titan and Loki), You can see the massive advantage where the original photo is 9.04 MB in JPG but 706KB in AVIF. My eye could dectet no quality difference at all. You can also see how Windows 10 File Explorer does not support AVIF as yet. But you can imagine the savings for a company like Facebook (which supports AVIF) that displays billions of images. Massive.
Another benefit of AVIF is that it is open and royalty-free, unlike other image formats such as HEIC and JPEG 2000. Anyone can use and implement AVIF without paying licensing fees or worrying about patent issues. AOMedia is a consortium of tech companies and organizations that includes Google, Microsoft, Netflix, Facebook, Amazon, Mozilla, and others.
AVIF is still a relatively new format and has yet to be widely supported by browsers and applications. However, major browsers like Chrome, Firefox, and Edge have already added or announced support for AVIF, and more platforms are expected to follow.
How to creat AVIF images
First, you need to create or convert your images to AVIF format. Several tools and services can help you with this task. Some which you may be familiar with for your desktop are: GIMP, Photoshop, ImageMagick, FFMPEG, irfanview and Zoner Photo Studio X.
If you are looking for a web app, try Squoosh. You can drag and drop your images, choose the output format (including AVIF), and adjust the quality settings. Squoosh also shows you a side-by-side comparison of the original and compressed images to see the difference in file size and appearance.
UberGeeks should check out libavif: A library that provides encoding and decoding functions for AVIF images. You can use it to create applications or scripts that handle AVIF files.
How to Use AVIF on a web page
Once you have your AVIF images ready, it's time to add them to your web page. The best way to do this is to use the
AVIF is a relatively new image format with better compression and quality than the popular JPEG, PNG, and WebP formats. AVIF stands for AV1 Image File Format, based on the AV1 video codec developed by the Alliance for Open Media.
AVIF uses the same compression techniques as AV1, such as intra-prediction, transform coding, entropy coding, and loop filtering, to reduce the size of image files without sacrificing visual quality. AVIF supports transparency, animation, color profiles, and HDR (Unlike WebP).
One of the main advantages of AVIF is that it can achieve much higher compression ratios than JPEG and PNG and even WebP while maintaining or improving the image quality.
The size reduction is significant to developers because bandwidth cost money - trust us MajorGeeks push a LOT of bandwidth (so keep that in mind when viewing our page ad blocking crowd - it's pricey.) Also, page speed is important to the end-user experience and to Google search algorithms. If all things are equal, the faster page may rank higher.
For example, in this image of my dogs (Titan and Loki), You can see the massive advantage where the original photo is 9.04 MB in JPG but 706KB in AVIF. My eye could dectet no quality difference at all. You can also see how Windows 10 File Explorer does not support AVIF as yet. But you can imagine the savings for a company like Facebook (which supports AVIF) that displays billions of images. Massive.
Another benefit of AVIF is that it is open and royalty-free, unlike other image formats such as HEIC and JPEG 2000. Anyone can use and implement AVIF without paying licensing fees or worrying about patent issues. AOMedia is a consortium of tech companies and organizations that includes Google, Microsoft, Netflix, Facebook, Amazon, Mozilla, and others.
AVIF is still a relatively new format and has yet to be widely supported by browsers and applications. However, major browsers like Chrome, Firefox, and Edge have already added or announced support for AVIF, and more platforms are expected to follow.
How to creat AVIF images
First, you need to create or convert your images to AVIF format. Several tools and services can help you with this task. Some which you may be familiar with for your desktop are: GIMP, Photoshop, ImageMagick, FFMPEG, irfanview and Zoner Photo Studio X.
If you are looking for a web app, try Squoosh. You can drag and drop your images, choose the output format (including AVIF), and adjust the quality settings. Squoosh also shows you a side-by-side comparison of the original and compressed images to see the difference in file size and appearance.
UberGeeks should check out libavif: A library that provides encoding and decoding functions for AVIF images. You can use it to create applications or scripts that handle AVIF files.
How to Use AVIF on a web page
Once you have your AVIF images ready, it's time to add them to your web page. The best way to do this is to use the