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

Display Profile Color Correction #207

Open
Snipeye opened this issue Oct 14, 2021 · 0 comments
Open

Display Profile Color Correction #207

Snipeye opened this issue Oct 14, 2021 · 0 comments

Comments

@Snipeye
Copy link

Snipeye commented Oct 14, 2021

General information:

  • OS name: _MacOS _
  • 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:

image

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.
Fund with Polar
@BoboTiG BoboTiG added the macOS label Apr 8, 2023
@polar-sh polar-sh bot added the Fund label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants