• flying_sheep@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      1 month ago

      Go with the times, PNG is old as dirt now. Everything supports Webp!

      /edit: the downvotes are hilarious. People have no problem moving on from mp3 to FLAC or so, but somehow they form an emotional attachment to PNG?

      • AdrianTheFrog@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 month ago

        Yes, and webp lossless is really good. JXL lossless is usually better, but either are better than png.

        Random high quality jpeg I found of a screenshot of sheet music:

        Original: 53.3 kb

        JXL: 12.2 kb

        Webp: 25.9 kb

        AVIF: 22.6 kb

        PNG: 47.3 kb

        Most are not anywhere near as favorable, that happened to be the most recent thing in my camera roll. Let me try another:

        Original PNG: 19.0 kb

        JXL: 12.9 kb

        Webp: 15.7 kb

        AVIF: 14.9 kb

        Finally, some larger and photographic content:

        Original PNG: 318 kb

        JXL: 185 kb

        Webp: 247 kb

        AVIF: 201 kb

        Encoder efforts picked to be the highest that would finish in within a few seconds in Image Toolbox on my phone. Webp doesn’t go up as high so it was finishing quicker here, and PNG doesn’t have varying effort afaik

        BTW JXL effort 1 lossless is insanely fast to encode (the order of a gigapixel per second) and also basically always smaller than PNG

        • michael_palmer@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 month ago

          It’s funny that Google is one of the developers of the JPEG XL format, but neither Chrome nor Android support this format.

          P.S. funny thing №2: title image on jpeg-xl homepage is AVIF.

          • AdrianTheFrog@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 month ago

            Makes sense though, since it is the best image format that is actually supported. Probably the best overall outside of lossless now with tune=iq, idk about AV2, h265, or h266 tho.

            The thing is, JXL has a lot of un-exploited potential for better encoding tools within the same codec, mostly from the fact that it has like 5 part time devs compared to the multi-company teams that AOM has.

  • Valmond@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 month ago

    Jpeg for lossy photos, png for lossless, gif for 256 color animations, what else?

    • craftrabbit@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 month ago

      Webp doesn’t support interlacing, so it’s basically worthless

      In all seriousness, it lacks some features, especially when compared to jxl, that stop it from being able to be a universal image format, which is something that jxl wants to achieve. All hail JPEG XL!

      Check this out to see the differences.

  • foodandart@lemmy.zip
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 month ago

    Well, the avif has made it impossible to save viewable images to my system, that’s for sure.

    For some reason not even XNViewMP is touching them, and it claims to be able to.

    (I screengrab the images and if they’re large, make multiple grabs to get the entire image captured then put it together in Photoshop… PITA but what else can I do… gah!)

    • Labna@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 month ago

      Because, PDF is a container, like a fancy zip, the pictures saved in are kept in their original format, (JPEG, PNG/APNG, AVIF, GIF, JP2k, JPXL, BMP…) unless you add a step to re-compress the all document with image.
      It’s always slightly bigger than the original file.

      • gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month ago

        interesting. but what if i want to make a mixture of vector graphics with a small portion raster graphics. the PDF would probably be smallest, because it will store all the vector graphics as vector graphics and only the small part raster graphics as raster graphics.