Live data from Hacker News

Visualizing and Understanding JPEG Format

github.com

1–10 of 47 posts

Re: Visualizing and Understanding JPEG Format

#3
> lossless storage:

> to make JPEG store data losslessly: use grayscale, 100% quality, then either width or eight to 1 pixel, or duplicate the padded data 8 times (JPEG images are stored in 8x8 blocks).

Interesting. I wonder if this is used internally in any applications.

Re: Visualizing and Understanding JPEG Format

#4

> lossless storage: > to make JPEG store data losslessly: use grayscale, 100% quality, then either width or eight to 1 pixel, or duplicate the padded data 8 times (JPEG images are stored in 8x8 blocks). Interesting. I wonder if this is used internally in any applications.

1 - No.

2 - JPEG algorithm allows to have lossless data without padding

3 - For lossless data rar/arc/ace are better then JPEG

Re: Visualizing and Understanding JPEG Format

#5
This is great, I was literally banging my head against a wall last night trying to determine how the length of the ECS was determined. What a lucky coincidence!

I'm trying to build a small C# library to support reading image types to learn about them, png was quite understandable but jpg is a little trickier, given I panic when I see maths.

Re: Visualizing and Understanding JPEG Format

#6
post #2

This repo from the author is full of gold. Shows the details and visualization of various file structures (including multiple zip formats, image formats and executable files) https://github.com/corkami/pics

Checked it out and the name Ange Albertini rang a bell. I fondly remember his Funky File Formats talk from 31C3. More gold from him here:

https://media.ccc.de/search?p=Ange+Albertini

The Preserve Arcade Games talk is also good, I only realized now that both talks were by the same person.

Re: Visualizing and Understanding JPEG Format

#9
Very nice read, thanks for posting it!!!

I also learned a lot from the various JPEG articles on ImpulseAdventure (no affiliation), e.g.:

https://www.impulseadventure.com/photo/jpeg-quantization.htm...

https://www.impulseadventure.com/photo/jpeg-compression.html

https://www.impulseadventure.com/photo/chroma-subsampling.ht...

They also have a lot of practical stuff (which chroma subsampling will Photoshop actually use when you save at 80% quality?) in addition to the theory.

Post reply on HN