this post was submitted on 20 Sep 2025
592 points (82.5% liked)

Programmer Humor

26521 readers
1953 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
[โ€“] ulterno@programming.dev 0 points 1 day 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?

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.