The AV1 Image format, or AVIF, is the latest image codec on earth. AVIF is an optimized image format which was created to make our images smaller while keeping the same quality (lossless).
In this article, I want to talk about its features and benefits, and why IMGHaste is using AVIF.
AOM developed AVIF with the goal of providing royalty-free images with better compression efficiency and more feature support compared to the existing image formats.
AVIF now has backers from big companies like Google, Netflix, and Apple.
Following its predecessors (WebP, JPEG-XR and PNG, GIF) AVIF is compatible with high-dynamic-range imaging. It supports 10- and 12-bit color at full resolution, resulting in images that are up to 10 times smaller than other known formats.
AVIF is a good choice for web developers because:
AVIF might look perfect to begin with, however there are some drawbacks.
Creating an AVIF (let’s say from a JPEG) requires a huge amount of time and its high CPU & Memory demanding.
So unless you keep a separated AVIF version of your images in your file system, creating an AVIF might take up to 3 seconds, even for high end CPUs.
Luckily at imghaste we have come to a solution will take care this. It’s within our roadmap and will soon be implemented for all users, the ability to switch from 30 days (1 credit) caching time to 365 days caching TTL.
This will practically force the AVIFs to be created just once every year and this way you can warm up the CDN cache yourself.
ImgHaste is using AVIF because is a game changer that will soon become the world’s defacto image format. Because of its potential features, it is likely that it will soon gain full support on all platforms.
Unlike Google’s WebP image, which took Apple a whole of 10 years to support, AVIF has quickly attracted Apple’s interest to the extent that they now contribute to the project.