KEMBAR78
Negative values allowed in `cHRM` by svgeesus · Pull Request #528 · w3c/png · GitHub
Skip to content

Conversation

@svgeesus
Copy link
Contributor

@svgeesus svgeesus commented Jul 7, 2025

No description provided.

@svgeesus svgeesus requested review from ProgramMax and chrisn July 7, 2025 17:22
@svgeesus svgeesus linked an issue Jul 7, 2025 that may be closed by this pull request
@svgeesus svgeesus merged commit a8f15b0 into main Jul 7, 2025
1 check passed
@fintelia
Copy link

fintelia commented Jul 7, 2025

I think it would be good to add an informational note in the cHRM section along the lines of: "Previous versions of this specification used unsigned 4-byte integers for these values, but the change is backwards compatible because PNG restricts 4-byte unsigned integers to the range 0 - 2^31-1 (rather than 0 - 2^32-1)".

@svgeesus
Copy link
Contributor Author

svgeesus commented Jul 7, 2025

I think it would be good to add an informational note

It would be good, yes (sorry, only saw your comment after merging)

Copy link
Member

@ProgramMax ProgramMax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@svgeesus
Copy link
Contributor Author

svgeesus commented Jul 7, 2025

So can I add another commit here even after merge or should I make a new PR to add the explanation?

@chrisn
Copy link
Member

chrisn commented Jul 7, 2025

Adding a note is a good idea, I'd suggest here as logically it's part of this change.

@svgeesus
Copy link
Contributor Author

svgeesus commented Jul 8, 2025

I tried but this PR doesn't pick up the change:

chris@SuperNomad:/mnt/c/Users/chris/Documents/GitHub/png$ git checkout negative-cHRM
Switched to branch 'negative-cHRM'
Your branch is up to date with 'origin/negative-cHRM'.
chris@SuperNomad:/mnt/c/Users/chris/Documents/GitHub/png$ git pull --rebase
Already up to date.
chris@SuperNomad:/mnt/c/Users/chris/Documents/GitHub/png$ explorer.exe .

(I make the edit and commit it)

chris@SuperNomad:/mnt/c/Users/chris/Documents/GitHub/png$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 20 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 584 bytes | 22.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:w3c/png.git
   64a79c2..63f00ee  negative-cHRM -> negative-cHRM

@svgeesus
Copy link
Contributor Author

svgeesus commented Jul 8, 2025

So here it is

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

Successfully merging this pull request may close these issues.

Negative chromaticity values

4 participants