Color profiles/LUT seems different in jit.matrix for Mac and Pc

Konstantin N's icon

Hello everyone!
Facing problem with color interpritation on Mac and Pc.
Same patch is showing different results for same basic jpg file.
For example:
this color information is in Photoshop:

Photoshop color picker

This file was saved as JPEG file without color profile. And this is result of "jit.matrix 4 char 32 32" -> "jit.iter" for same picture on mac:

mac color interpretation

as you can see, R/G/B information is wrong, 255 -> 251, 242 -> 243, 0 -> 51, no matter what arguments in jit.matrix are.
And the same patch shows correct information on Windows.
It seems to me, that Mac version uses some color profile or LUT settings, but I don't know how to avoid it.
Does anyone knows how to fix it?
Please help!

Rob Ramirez's icon

likely due to your Display Profile (System Preferences -> Displays -> Color)

setting it to sRGB IEC(bunch of numbers) should "fix" this. We are investigating alternatives t the current behavior for jitter matrices, but the current behavior is actually "correct" although probably unexpected.

Konstantin N's icon

Wow thanks!
I figured out that using BMP images fix that behavior, I'm lucky that I didn't need video for that setup.