
TL;DR
JPEG XL has been compared to AVIF for web use, revealing that AVIF generally produces smaller file sizes for lossy photos and is significantly better for screenshots and illustrations.
✦ Why It Matters
Consider using AVIF for web images to optimize loading times and reduce bandwidth usage.
Key Takeaways
Full Summary
JPEG XL, now supported in all major browsers, was evaluated against AVIF for web image use. For lossy photos, AVIF typically results in file sizes that are 15-25% smaller than JPEG XL at default settings, and 6-20% smaller at maximum effort settings.
However, certain images may yield better results with JPEG XL, particularly when using the newer jixel encoder, which often outperforms libjxl. In contrast, for screenshots and illustrations, AVIF is far superior, with JPEG XL files being 30-90% larger at default settings.
This suggests that while JPEG XL has its strengths, AVIF is the preferred choice for most web images, especially when file size is a priority.
Related