

Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- I think it would be a neat idea (if it doesn't exist already) to have a site with a collection of similar pages like this for many different formats.
- I clicked "Show metadata chunks" and I don't understand the Critical vs Ancillary distinction. The Gamma, Color Space Information, Physical Dimensions, and Background Color sections all have a lowercase letter for their header. Aren't those critical to displaying the image properly? Meanwhile the Trailer IEND has an uppercase letter, indicating the zero-length outro byte is somehow more essential than all the color info?
Same question for safe/unsafe to copy. "Do programs that modify the PNG data need to understand this chunk?" Somehow, they need to understand the Last Modification Date before modifying the image, but no, they don't need to understand the Physical Dimensions(?)
by akersten - Over a winter break a few years ago I wrote a PNG decoder in Rust, it was kinda fun! Here's the code if anyone's interested, it's not particularly great though.by bschwindHN