Repository navigation
Display color management: No ICC monitor profile support means many users cannot use RapidRAW on wide-gamut monitors #1746
Mysterious-Co
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
Hi @Mysterious-Co, I ran into the same situation, so I've been working on implementing this (testing on a wide-gamut display calibrated with DisplayCAL/ArgyllCMS). If you'd like to test, you can grab a copy here: https://github.com/cfelicio/RapidRAW/releases/tag/v1.6.9-preview-heic-dcm Once I've done more testing I will submit a PR, so hopefully it can be included in a future release. The key issue atm is that there is also an issue on a dependency (moxcms), I submitted a PR there first to fix, otherwise colors come out all wrong on my calibrated display.
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
It is worth mentioning that I do love RapidRAW. The interface is, in my opinion, miles ahead of every other Lightroom-alternative in terms of usability, especially those available on Linux. I have to commend the developer, it's really well laid-out, and I'd desperately like to use it as my daily driver app, but at the moment, I can't without some kind of ICC monitor profile support.
The problem:
RapidRAW currently has no display color management. Everything it draws is sent to the screen as raw sRGB numbers, with no conversion to the display's actual color space. On a standard sRGB monitor this is invisible and nothing is wrong. But, wide-gamut monitors are getting a lot more common, especially with the increasing popularity of OLED. My laptop and my two desktops are all OLED, and thus, wider gamut than sRGB. This is becoming increasingly common nowadays.
On a wide-gamut monitor, for many OS setups, it means the color in RapidRAW is displayed as inaccurate, and is very noticeably incorrect. Saturated colors are pushed well outside where they should sit, and there's no way to accurately judge a color decision during editing.
OS specifics:
Not every OS and OS version is subject to this issue, but many of them are. I am currently running Linux Mint 22.3, a fairly popular choice nowadays from what I gather, which uses an older, battle-worn and time-tested (ie, old) X11 display server. But, this isn't only a Linux issue.
CAMetalLayer.colorspaceunset until fix(metal): Explicitly set sRGB surface color space gfx-rs/wgpu#10286, which leaves content unmanaged and oversaturated on wide-gamut displays. However, I haven't tested this myself since I don't own a newer Apple computer, so it might be totally fine on MacOS.(Note the flip side: on systems where the compositor already converts, an app-side transform would double-correct. That's why this should be opt-in and off by default.)
The way it works in Mint/X11 is that the OS can have an ICC monitor profile set, and the profile is just advertised on the root window as the _ICC_PROFILE atom, and it's up to each application to read it and do the conversion itself with lcms or similar. Very many apps in Linux do this automatically (Darktable, RawTherapee, many photo viewers, most browsers, etc), and even applications like Lightroom running in Wine read this _ICC_PROFILE atom correctly via GetICMProfile. RapidRAW appears to not read the _ICC_PROFILE atom as reported by the OS. However, some applications choose to ignore this _ICC_PROFILE atom and simply allow the user to set their own ICC profile in the settings if need be, which may be an even better option, especially for those who use color calibration tools to create their ICC profiles
This isn't a preference or a niche request, rather, for wide-gamut users it makes the editor unusable for color work specifically, which is a shame given how good the rest of it is. Every other RAW editor handles this, and most also let you pick the profile manually rather than relying on OS detection. Here's a comparison photo, attached, which shows the same image on a correctly managed app on the left, compared to RapidRAW on the right. Both are displayed on the same monitor at the same time, with the only difference being that the left is loading the ICC profile correctly. In reality, the photo on the left is the accurate representation of the photo, how it would show up on most devices. On the right is RapidRAW, not utilizing any ICC profile, and trying to display the photo as sRGB, which erroneously gets stretched to wide-gamut by the monitor.
What I'm proposing
A minimal first version: Let the user point at an ICC profile in Settings, and apply it to the preview only.
Implementation sketch
As far as I can tell most of the machinery already exists, since RapidRAW already loads and samples 3D LUTs in the shader. A display transform is a 3D LUT, but it just lives at a different point in the pipeline.
qcms(the engine Firefox uses for this) is pure Rust and would avoid adding a C dependency;lcms2is the alternative if broader v4 profile support matters more.Deliberately out of scope for v1
Manual selection on the canvas alone would already make the app usable for color work, and the rest can follow if there's interest.
Related
#1489 (no ICC profile embedded on export) is the other half of the same gap and is arguably more urgent, since untagged exports are ambiguous for every user rather than just wide-gamut ones. They're independent changes though.
What I can help with
I have the hardware to verify this properly, a profiled wide-gamut display and a colorimeter, and I'm happy to test CI builds and report back with measurements and screenshots at any stage. That's usually the hard part of a feature like this to check without the right monitor in front of you. I'm no expert coder, but if this implementation looks okay to you, I'd be willing to attempt the implementation myself if you'd be open to reviewing it. I'd have to use AI assistance for the code, and would of course test it to ensure it actually works before starting anything (I can test on Win10, Win11, and Linux Mint/CachyOS).
Thanks for the consideration!
All reactions