Skip Navigation

AVIF instead of WEBP

I think it's a great time to switch things over.

All major browsers and web engines support it and anything that doesn't anymore is painfully outdated. This would offer you improved quality to storage ratios. Additionally, it would support 10bit colour which can be important with anime art.

13
13 comments
  • So, I don't really have a strong opinion here, but I suspect there might be issues with certain things (like gifs) due to the lack of avif motion support in iOS browsers (based on caniuse). I don't have the means to test this though.

    • Well, it's not like we couldn't fall back to animated webps for that until it's no longer a problem.

      Depends on how configurable image-rs is I guess.

      I could test avif for my posts tho, as I host my images with catbox anyway.

      I'm certainly curious to see if I can achieve smaller files with the same quality, as it's always nice when browsing is fast.

      • pictrs can handle it separately. It's possible to use AVIF for static images and GIF/WEBM for animated images. I know all modern web browsers can handle it but I'm concerned if common Lemmy apps can.

        This is an AVIF image to test:

        edit: I tested a bunch of Lemmy apps on Android. Voyager was the only one that could display properly.

    • If I'm reading this correctly it says iOS does support it? I think you're looking at the old version in their chart.

      The site wasn't playing well on mobile. I can see what you're saying now on my desktop. I can try it on ios later.

13 comments