How JPEG works: Interactively explore JPEG's lossy compression methods

cgjennings.ca

61 points by at1as 4 days ago


herf - 2 hours ago

Nicely illustrated, and only one criticism: our preference for luminance (using more bits for "Y" vs "Cr/Cb") isn't due to the number of rods in the eye - there are so many rods so that we can capture more photons at night, and they are usually saturated at daylight illuminances. The effectiveness of the YCbCr encoding is much more related to the predominant pathway to the LGN (80-90% of the "number of bits" used) encoding luminance and center-surround, so those things both map well to using more bits for "Y".

netsharc - 25 minutes ago

There's a series of videos showing the algorithm: https://www.youtube.com/watch?v=LFXN9PiOGtY

I finally understood DCT after watching https://www.youtube.com/watch?v=Q2aEzeMDHMA

And someone created a "JPEG to PNG" tool that "finds the smoothest possible picture that encodes to the given JPEG file": https://github.com/victorvde/jpeg2png . I tried it with some very terribly compressed images, and the outputs were a lot better.

greatquux - 27 minutes ago

I remember when I first learned about the difference between spatial and frequency domains. I didn’t actually get it fully during class. But during the walk home I had to stop and sit down and think about it… I started to “refactor” all of human history into frequency changes! It’s a pretty interesting concept.

asterisk_man - 3 hours ago

I appreciated the information being presented, but when the controls are not visible at the same time as the thing they effect it makes the interactive component almost worthless.

nono_ninja - an hour ago

I appreciate the insight to something I use all the time.

supportm - 2 hours ago

This has been one of the best explanations I've seen, thanks for sharing