OS version: 10.14.6, but I anticipate it applies to newer versions
OS architecture: 64 bits
Resolutions:
Monitor 1: 1920x1200 screen resolution, screen is retina and sampled at 2x
Python version: 3.8.8
MSS version: 6.1.0
Description of the warning/error
When a capture (using .grab) in macOS, the resultant screenshot is modified according to the selected color profile. A picture of a pure #FF00FF color resulted in RGB values of [252 40 252] - this agrees with the system color profile tool:
A workaround is to set my profile to sRGB IEC61966-2.1, but even that results in some "corruption" ([251 0 255]). Is there a way we can reverse the color-correction? I think that CGImage has a link to the decode transform used to change color spaces? (https://developer.apple.com/documentation/coregraphics/cgimage/1454575-decode) but I'm not sure if that's what's being used under the hood for mss, I only stumbled on this today when looking for some fast image capture.
Full message
None
Other details
None
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
General information:
Description of the warning/error
When a capture (using .grab) in macOS, the resultant screenshot is modified according to the selected color profile. A picture of a pure #FF00FF color resulted in RGB values of [252 40 252] - this agrees with the system color profile tool:
A workaround is to set my profile to sRGB IEC61966-2.1, but even that results in some "corruption" ([251 0 255]). Is there a way we can reverse the color-correction? I think that CGImage has a link to the decode transform used to change color spaces? (https://developer.apple.com/documentation/coregraphics/cgimage/1454575-decode) but I'm not sure if that's what's being used under the hood for mss, I only stumbled on this today when looking for some fast image capture.
Full message
None
Other details
None
Upvote & Fund