• flamingos-cant (hopepunk arc)@feddit.uk
    link
    fedilink
    English
    arrow-up
    34
    ·
    3 months ago

    This depends, if your image contains a lot of flat colours (like a screenshot of a website) then PNG can actually give you smaller file sizes than lossless webp. But for most images (especially ones with compression artefacts) lossless webp gives smaller sizes.

    • tyler
      link
      fedilink
      arrow-up
      11
      arrow-down
      4
      ·
      3 months ago

      But that’s not got anything to do with quality. That’s compression size

    • ulterno
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      3 months ago

      But for most images (especially ones with compression artefacts) lossless webp gives smaller sizes.

      And if you already have compression artifacts, what use is lossless?
      Only time you would want it is when you are uploading comparison photos specifically showing compression artifacts created from some other compression result.
      That’s a bit to niche to make it worthwhile.

      • GamingChairModel@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        And if you already have compression artifacts, what use is lossless?

        To further reduce file size without further reducing quality.

        There are probably billions of jpeg files out there in the world already encoded in lossy JPEG, with no corresponding higher quality version actually available (e.g., the camera that captures the image and immediately saves it as JPEG). We shouldn’t simply accept that those file sizes are going to forever be stuck, and can think through codecs that further compress the file size losslessly from there.

        • ulterno
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 months ago

          Wait, so lossless webp manages to be smaller than even lossy jpg, while also having to losslessly reproduce jpeg artifacts, which tends to otherwise greatly increase file sizes (as compared to the original lossless file) in lossless formats?