How to format quality images using AVIF, Squoosh, and go-avif
Blog post from LogRocket
AVIF, an open-source and royalty-free image format developed by the Alliance for Open Media, is based on the AV1 video codec and offers significant file size reductions compared to JPEG and WebP formats while maintaining visual quality. Despite limited current browser support, AVIF is gaining attention for its efficiency in reducing page load times, tested by major companies like Facebook and Netflix. The format is generated using tools like Squoosh for single images or go-avif for batch conversions, although it lacks progressive rendering and has limited software support. To mitigate compatibility issues, web developers can use the <picture> element to provide fallbacks to JPEG or WebP formats for unsupported browsers. Despite its limitations, AVIF's potential for improved digital experiences makes it a promising option for future web development.