this post was submitted on 20 Sep 2025
608 points (82.7% liked)

Programmer Humor

26640 readers
1729 users here now

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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Aatube@kbin.melroy.org 169 points 1 week ago (3 children)

wdym "terrible quality loss"; for one their lossless beats PNG

[–] UnderpantsWeevil@lemmy.world 126 points 1 week ago

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

[–] flamingos@feddit.uk 34 points 1 week ago (2 children)

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 7 points 1 week ago (1 children)

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

[–] flamingos@feddit.uk 60 points 1 week ago (2 children)

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

[–] Carighan@piefed.world 8 points 1 week ago (1 children)

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

[–] vithigar@lemmy.ca 9 points 1 week ago (2 children)
[–] Carighan@piefed.world 4 points 1 week ago

Fuuuuuck. There goes another business idea. 😂

[–] ulterno@programming.dev -1 points 1 week 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 0 points 1 week ago (1 children)

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.

[–] ulterno@programming.dev -1 points 1 week ago (2 children)

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 2 points 1 week ago (1 children)

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 0 points 1 week ago (1 children)

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 2 points 1 week 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.

[–] The_Decryptor@aussie.zone 2 points 1 week ago (1 children)

Lossless is fine, lossy is worse than JPEG.

[–] RickyRigatoni@retrolemmy.com 4 points 1 week ago (1 children)

If someone chooses lossy they deserve whatever torture they receive.

[–] SleveMcDichael@programming.dev 4 points 1 week ago (1 children)

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.

[–] RickyRigatoni@retrolemmy.com 1 points 1 week ago

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