Announcement

Collapse
No announcement yet.

Mozilla Firefox Appears Ready To Enable AVIF Image Handling Support By Default

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mozilla Firefox Appears Ready To Enable AVIF Image Handling Support By Default

    Phoronix: Mozilla Firefox Appears Ready To Enable AVIF Image Handling Support By Default

    It looks like Mozilla Firefox very soon will be enabling support for AVIF as the image format based on AV1 video coding...

    http://www.phoronix.com/scan.php?pag...rly-Ready-AVIF

  • #2
    Does imagemagick support avif? I tried converting something to it (Debian testing) but it's changing the file.

    Code:
    convert -verbose test.jpg test.avif 
    test.jpg JPEG 374x423 374x423+0+0 8-bit sRGB 67756B 0.010u 0:00.006
    test.jpg=>test.avif JPEG 374x423 374x423+0+0 8-bit sRGB 68217B 0.000u 0:00.006

    Comment


    • #3
      That's weird. They dragged on with WebP support for five years before finally enabling it, now with AV1F they are almost rushing.

      Comment


      • #4
        Originally posted by shmerl View Post
        Does imagemagick support avif? I tried converting something to it (Debian testing) but it's changing the file.

        Code:
        convert -verbose test.jpg test.avif 
        test.jpg JPEG 374x423 374x423+0+0 8-bit sRGB 67756B 0.010u 0:00.006
        test.jpg=>test.avif JPEG 374x423 374x423+0+0 8-bit sRGB 68217B 0.000u 0:00.006
        The ImageMagick website lists its supported formats, but AVIF is not listed.
        The GraphicsMagick (a fork) website lists its supported formats, but doesn't include AVIF either.

        Comment


        • #5
          Originally posted by birdie View Post
          That's weird. They dragged on with WebP support for five years before finally enabling it, now with AV1F they are almost rushing.
          And now Google is experimenting with WebP2, a successor to WebP.

          Comment


          • #6
            Originally posted by shmerl View Post
            Does imagemagick support avif? I tried converting something to it (Debian testing) but it's changing the file.

            Code:
            convert -verbose test.jpg test.avif 
            test.jpg JPEG 374x423 374x423+0+0 8-bit sRGB 67756B 0.010u 0:00.006
            test.jpg=>test.avif JPEG 374x423 374x423+0+0 8-bit sRGB 68217B 0.000u 0:00.006
            A few months ago it didn't work, but now it works for me:
            Code:
            test.jpg JPEG 6000x4000 6000x4000+0+0 8-bit sRGB 5640540B 0.200u 0:00.206
            test.jpg=>test.avif JPEG 6000x4000 6000x4000+0+0 8-bit sRGB 1.57753MiB 93.430u 0:28.035
            $ exiv2 test.avif
            File name : test.avif
            File size : 1654164 Bytes
            MIME type : video/quicktime
            Image size : 0 x 0
            It used 28 seconds and 4600 MB RAM on Ryzen 2600.
            ImageMagick 7.0.10-52 Q16 x86_64 2020-12-19
            aom 2.0.1
            libheif 1.10.0
            If you cannot update imagemagick, you can use avifenc from 'libavif' (or 'libavif-bin') package.
            I didn't found know how to losslessly encode using imagemagick, I only know
            Code:
            avifenc -j 12 -s 0 -l test.png test.avif
            (-j is number of threads, -l is lossless, lowest -s = 0 = longest encoding but the best size).
            jpg -> webp:
            Code:
            avifenc -j 12 -s 0 --min 0....63 --max 0....63 test.jpg test.avif
            (min and max acceptable qualities, less is better).
            Also Firefox (latest version=84) still doesn't support both lossless and lossy transparent AVIF (wrong colors): probably bug https://bugzilla.mozilla.org/show_bug.cgi?id=1682677
            So there will be nothing better for lossless 8-bit-per-color images than
            Code:
            cwebp -mt -q 100 -m 6 -lossless on test.png test.webp
            for a long time (lossy webp even at -q 100 damages red color) . Also lossless webp takes less space (and encoding time and RAM, but no HDR) than lossless avif. The lowest webp size is acheived by having 3 flags "-q 100 -m 6 -lossless on", some people (e.g. https://docs.google.com/spreadsheets...KQM/edit#gid=0 ) compared lossless avif and png not using all of them.
            Last edited by arzeth; 20 December 2020, 08:38 AM.

            Comment


            • #7
              Originally posted by shmerl View Post
              Does imagemagick support avif? I tried converting something to it (Debian testing) but it's changing the file.

              Code:
              convert -verbose test.jpg test.avif 
              test.jpg JPEG 374x423 374x423+0+0 8-bit sRGB 67756B 0.010u 0:00.006
              test.jpg=>test.avif JPEG 374x423 374x423+0+0 8-bit sRGB 68217B 0.000u 0:00.006
              You need compile imagemagic with libheif. Then avif should be supported.

              Comment


              • #8
                avifs still dont load right (if at all) on the nightly... its usually just the first image in the sequence while chrome had been able to for months now. but thats the usual with mozilla now

                Comment


                • #9
                  It's great we can show the format, but who produces AVIF images right now?

                  Comment


                  • #10
                    Originally posted by uid313 View Post

                    And now Google is experimenting with WebP2, a successor to WebP.
                    Google doesn't even support WebP across all of their own products yet. You can't import WebP images into Google Slides, for example.

                    Comment

                    Working...
                    X