←back to thread

A new PNG spec

(www.programmax.net)
624 points bluedel | 1 comments | | HN request time: 0.259s | source
Show context
ProgramMax ◴[] No.44380761[source]
Author here. Hello everyone! Feel free to ask me anything. I'll go ahead and dispel some doubts I already see here:

- It isn't really a "new format". It's an update to the existing format. - It is very backwards compatible. -- Old programs will load new PNGs to the best of their capability. A user will still know "that is a picture of a red apple".

There also seems to be some confusion about how PNGs work internally. Short and sweet: - There are chunks of data. -- Chunks have a name, which says what data it contains. A program can skip a chunk it doesn't recognize. - There is only one image stream.

replies(7): >>44381338 #>>44381836 #>>44383578 #>>44383904 #>>44385382 #>>44386681 #>>44388462 #
fwip ◴[] No.44381338[source]
Do you have any examples on hand of PNGs that use the new features of the spec? It would be cool to see a little demo page with animated or HDR images, especially to download to test if our programs support them yet.
replies(1): >>44381484 #
ProgramMax ◴[] No.44381484[source]
Sure!

Chris Lilley--one of the original PNG co-authors--has a post with an example HDR image: https://svgees.us/blog/cICP.html It is about half way down, with the birthday cake. Generally, us tech nerds have phones that are capable of displaying it well. So perhaps view the page on your phone.

What you should look for is the cake, the pink tips in her hair, and the background being more vivid. For me, the pink in the cake was the big give-away.

There is also the Web Platform Tests (WPT) which we use to validate browser support: https://wpt.fyi/results/png/cicp-chunk.html?label=master&lab...

Although, that image is just a boring teal. See it live in your browser here: https://wpt.live/png/cicp-chunk.html

For an example of APNG, you can use Wikipedia's images: https://en.wikipedia.org/wiki/APNG

But you have a bigger point: I should have live demonstrations of those things to help people understand.

replies(5): >>44382176 #>>44382359 #>>44384351 #>>44387516 #>>44389748 #
1. cratermoon ◴[] No.44387516[source]
I can see a clear difference between the images in Firefox on MacOS with my M1 macbook. Very nice.