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.

  • MentalEdge
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 months ago

    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.

    • hitagiMA
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      5 months ago

      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.

      • wjs018
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 months ago

        The apps are a good point. The image does display correctly in an Android browser, but doesn’t load in any of the apps that I have installed.

      • Toes♀OP
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 months ago

        Oh that’s fascinating. I wonder if they are using the same misconfigured library. I had assumed since the browser engines could, so would the app.

      • MentalEdge
        link
        fedilink
        English
        arrow-up
        5
        ·
        5 months ago

        Voyager was the only one that could display properly.

        Works on thunder.

        • hitagiMA
          link
          fedilink
          English
          arrow-up
          5
          ·
          5 months ago

          Good to know that Thunder and Voyager works. It doesn’t for Jerboa, Boost, and Sync. Maybe we can open an issue or message the developers about it.

          Not sure how it is for iOS apps though.

          • MentalEdge
            link
            fedilink
            English
            arrow-up
            5
            ·
            5 months ago

            Might be android version dependent? Because now I’m on my second phone (on an older android version) and here it doesn’t work in Thunder.

            • hitagiMA
              link
              fedilink
              English
              arrow-up
              2
              ·
              5 months ago

              I see. That could also be the problem. In that case, it might be better to stick with WEBP so other people aren’t left out.

            • Toes♀OP
              link
              fedilink
              English
              arrow-up
              2
              ·
              5 months ago

              Which android version out of curiosity?

                • Toes♀OP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  5 months ago

                  Ah yeah that version is past its end of life. Should avoid using it online it doesn’t get security updates anymore.