LQX Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@piefed.world to Programmer Humor@programming.devEnglish · 3 days ago

Webp

lemmy.ml

message-square
231
link
fedilink
605

Webp

lemmy.ml

cm0002@piefed.world to Programmer Humor@programming.devEnglish · 3 days ago
message-square
231
link
fedilink
  • Aatube@kbin.melroy.org
    link
    fedilink
    arrow-up
    172
    arrow-down
    4
    ·
    3 days ago

    wdym “terrible quality loss”; for one their lossless beats PNG

    • UnderpantsWeevil@lemmy.world
      link
      fedilink
      English
      arrow-up
      126
      arrow-down
      1
      ·
      3 days ago

      They had a better joke, but they converted it to a Webp and lost the punchline.

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

      • tyler@programming.dev
        link
        fedilink
        arrow-up
        11
        arrow-down
        4
        ·
        3 days ago

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

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

          Lossless encoding, by definition, won’t have any quality loss.

          • Carighan Maconar@piefed.world
            link
            fedilink
            English
            arrow-up
            9
            arrow-down
            1
            ·
            3 days ago

            Watch some startup “invent” a revolutionary lossless format that discards some information.

            • vithigar@lemmy.ca
              link
              fedilink
              arrow-up
              9
              ·
              3 days ago

              Xerox did that ages ago.

              https://www.dkriesel.com/en/blog/2013/0802_xerox-workcentres_are_switching_written_numbers_when_scanning

              • Carighan Maconar@piefed.world
                link
                fedilink
                English
                arrow-up
                3
                ·
                2 days ago

                Fuuuuuck. There goes another business idea. 😂

              • ulterno@programming.dev
                link
                fedilink
                English
                arrow-up
                0
                arrow-down
                1
                ·
                3 days ago

                did that ages ago

                That’s the point of revolution, no?
                Going back to something that was in the past, except giving it a new name and context:P

          • tyler@programming.dev
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            2 days ago

            Huh? The OP literally said “their lossless beats png” and then you proceeded to talk about file size which wasn’t ever part of the conversation. The conversation was about quality.

            • TheNamlessGuy@lemmy.world
              link
              fedilink
              arrow-up
              6
              ·
              2 days ago

              The only way one lossless algorithm can beat another is in compression size. If one has worse image quality than the other, the worse one isn’t lossless.

      • 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.

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

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

              JPEG XL has a mode for losslessly encoding any lossy JPEG into a smaller file size without any loss of quality. Wikipedia has some description of general approaches for losslessly encoding JPEG files further.

              I don’t know if webp uses any of these tricks, but I don’t see why it would be hard to imagine that compression artifacts from a 30-year-old format can be encoded more efficiently today.

        • flamingos-cant (hopepunk arc)@feddit.uk
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          2 days ago

          deleted by creator

    • The_Decryptor@aussie.zone
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      2
      ·
      3 days ago

      Lossless is fine, lossy is worse than JPEG.

      • Ricky Rigatoni@retrolemmy.com
        link
        fedilink
        arrow-up
        6
        arrow-down
        2
        ·
        3 days ago

        If someone chooses lossy they deserve whatever torture they receive.

        • SleveMcDichael@programming.dev
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 days ago

          Unfortunately most people don’t really have a choice in the matter. It’s sites like twitter that crunch images to hell and back on upload that choose for us.

          • Ricky Rigatoni@retrolemmy.com
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            Choose life don’t use webbed sites that use lossy webps

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.1K users / day
  • 4.68K users / week
  • 8.19K users / month
  • 19.8K users / 6 months
  • 1 local subscriber
  • 26.5K subscribers
  • 1.17K Posts
  • 28.2K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org