Live data from Hacker News

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

cgjennings.ca

11–15 of 15 posts

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

#12
post #7

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…

That jpeg2png is extremely cool and looks like something which could be built in to image viewers. Naturally, nothing about the "maximally smooth decode" process requires the output to be PNG.

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

#13

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.

I made the most discoveries of solutions to my work in that drive home.

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

#14
post #12
post #7

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…

That jpeg2png is extremely cool and looks like something which could be built in to image viewers. Naturally, nothing about the "maximally smooth decode" process requires the output to be PNG.

Here's another option, comparison to jpeg2png at the bottom of the README.

https://github.com/ilyakurdyukov/jpeg-quantsmooth

Post reply on HN