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

MacOS is no longer gamma 1.8 #18

Open
Myndex opened this issue Jun 23, 2023 · 1 comment
Open

MacOS is no longer gamma 1.8 #18

Myndex opened this issue Jun 23, 2023 · 1 comment

Comments

@Myndex
Copy link

Myndex commented Jun 23, 2023

Hello,

I was just reviewing a couple things and I noticed that it looks like the gamma exponent being used here is 1.8. That is the MacOS legacy gamma prior to Snow Leopard. MacOS went to sRGB (nominally 2.2) since Snow Leopard, so 2.2 would be more correct (and there is a piecewise transfer curve for sRGB, though it is computationally more expensive).

Also, the transform matrix for display-P3 is a little different than sRGB, let me know if you'd be interested in supporting display-P3? Display-P3 uses the sRGB TRC, but the primaries have different coordinates, resulting in a different transform matrix to LMS.

@nvkelso
Copy link
Owner

nvkelso commented Jun 23, 2023

Thanks for the report!

Can you submit at PR with fixes?

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

2 participants