JPEG XL vs AVIF for web use-cases

35 points by jaffathecake


altano

My takeaway: all of these formats are so incredible. The 50% F1 image goes from a 1.01mB original to a 23.7kB avif, and I can’t even tell it was compressed without zooming in (on my iPhone 16 Pro).

I default to avif on my website though due to all these great write-ups and the fact that you have to pick something. Thanks, Jake!

cosarara

On the screenshot example, the brightness of the white changes a lot between avif and lossless (especially noticeable on the underline for links). There is a similar effect on the shine in the woman's glasses on the People picture. It might be something to do with the scaling algorithm (on 1080p, the image is shrinked quite a bit), but it doesn't happen to the jxl images (which look exactly like the lossless ones to me). ... aaand I just realized I'm on firefox 157, which doesn't have native jxl support, so I'm just comparing scaling algorithms between a js-drawn canvas and real avif. After trying on 158, there is no such effect. It would be nice to get a link to open the full image in a new tab, to be able to compare the lossless to the lossy without being constrained by the website layout.