Most active commenters
  • ProgramMax(3)

←back to thread

A new PNG spec

(www.programmax.net)
617 points bluedel | 11 comments | | HN request time: 1.499s | source | bottom
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 #
1. 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 #
2. fwip ◴[] No.44382176[source]
Thanks, I appreciate all of these links. :)
3. jacekm ◴[] No.44382359[source]
Thank you for the examples. I tried the one with a pink cake. Turns out that on my machine only web browsers are capable of displaying the image properly. All viewers (IrfanView, XnView, Nomacs, Windows Photos) and editors (Paint .NET, GIMP) that I've tried only showed the "washed out" picture.
replies(2): >>44382516 #>>44385425 #
4. ProgramMax ◴[] No.44382516[source]
Yeah. We were able to get buy-in from some big players. We cannot contact every group, though. My hope is since big players have bought in, others will hear the message and update their programs.

Sooooo file some bugs :D

Also, be kind to them. This literally launched yesterday.

replies(1): >>44383911 #
5. dave8088 ◴[] No.44383911{3}[source]
The creator of photopea.com is very responsive to user suggestions. I’d recommend contacting him if you haven’t already.
6. Nopoint2 ◴[] No.44384351[source]
I never realized how limited sRGB is. I guess this is why people liked CRT TVs, and why you could never watch analog TV properly on a PC screen.
replies(1): >>44385411 #
7. account42 ◴[] No.44385411[source]
It's really not that limited, the problem is only if you reinterpret a larger gamut as sRGB without doing the proper conversion where things look washed out.
replies(1): >>44387463 #
8. account42 ◴[] No.44385425[source]
Huh, for some reason GIMP doesn't even show the usual color space conversion dialog.
9. Nopoint2 ◴[] No.44387463{3}[source]
That's what I thought too, but the difference is big. You'd think you maybe lose some color lights, or very bright flowers, but no, colors outside sRGB are common.

There was nothing you could do about the TV, the screen couldn't show all the colors that you needed.

10. cratermoon ◴[] No.44387516[source]
I can see a clear difference between the images in Firefox on MacOS with my M1 macbook. Very nice.
11. jcynix ◴[] No.44389748[source]
> But you have a bigger point: I should have live demonstrations of those things to help people understand.

Pink can pose problems for individuals with red-green color blindness (or more exactly: color vision deficiency). So make sure that examples work for these people too. Otherwise the examples might not work for about 8% of your male viewers.