color-oracle icon indicating copy to clipboard operation
color-oracle copied to clipboard

MacOS is no longer gamma 1.8

Open Myndex opened this issue 1 year ago • 1 comments

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.

Myndex avatar Jun 23 '23 18:06 Myndex