JPEG XL vs AVIF for web use-cases
Summary
Jake Archibald compares JPEG XL and AVIF for web use by benchmarking several images (F1, people, red panda, etc.) across lossy, lossless, and HDR scenarios. The article provides actionable conclusions: AVIF generally yields smaller lossy files, JPEG XL can win in specific cases (lossy-with-patches, lossless, alpha, HDR), and both formats benefit from testing with real assets. A detailed methodology and multiple encoders (libjxl, jixel) are included, along with progressive rendering and decoding considerations.