• flamingos-cant (hopepunk arc)@feddit.uk
    link
    fedilink
    English
    arrow-up
    34
    ·
    4 days 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.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      3 days 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
        ·
        2 days 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.