Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for newer chunks? #11

Open
svgeesus opened this issue May 4, 2023 · 6 comments
Open

Add support for newer chunks? #11

svgeesus opened this issue May 4, 2023 · 6 comments

Comments

@svgeesus
Copy link

svgeesus commented May 4, 2023

TweakPNG is a very handy tool, but it does not know about more recent chunks. It would be nice to add support for them:

(Yes, the three APNG chunks indicate that they are private, but there is now a decade and a half worth of animated PNG images all over the web using those chunk names, so they can't be changed.)

See also the chunk ordering constraints.

@svgeesus
Copy link
Author

svgeesus commented May 4, 2023

Actually I see APNG is already supported and displays useful information, nice!

@jsummers
Copy link
Owner

jsummers commented May 7, 2023

Thanks for the suggestions. I hope to add basic support for cICP, mDCv, and cLLi. eXIf is a problem, though, and at this point I'm not planning anything more than the most minimal support for it.

@TPS
Copy link

TPS commented May 7, 2023

@jsummers Any plans re: any of the other open issues? 🙇🏾‍♂️

@svgeesus
Copy link
Author

svgeesus commented May 8, 2023

Oh, EXIF in general is huge and sprawling, plus there are already tools like exiv2 which deal with it very comprehensively. So minimal support in tweakpng makes perfect sense!

For cICP there are certain combinations of values that are common - like 9 18 0 1 which means BT.2100 HLG, 9 16 0 1 which means BT.2100 PQ, 1 13 0 1 which means sRGB and 12 13 0 1 which means Display P3. My suggestion would be to check for that fairly small set and display more human-readable strings; and if it is some other combination, display the individual values.

@svgeesus
Copy link
Author

Just a heads-up that an updated draft of PNG Third Edition was published today

@svgeesus
Copy link
Author

Another heads up, PNG became a Candidate Standard 21 Sept 2023. Implementations of the new features are encouraged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants