darktable icon indicating copy to clipboard operation
darktable copied to clipboard

implementing communication with the wayland color management protocol

Open blitzgneisserin opened this issue 1 year ago • 9 comments

Does anybody here already work on implementing the communication with the wayland color management? So darktable can show colors outside of srgb without switching off system-wide wayland color management?

From my point of view, there will be no way around this. Chrome is the first program that can definitely do this. Krita and Digikam are working on it. Of course, in darktable's case, there are at least two challenges: darktable uses gtk3 and porting to gtk4 seems difficult, plus darktable uses xwayland.

I did some research and it seems that there might be some "workarounds", e.g. chatgpt suggested to create a proxy that does the communication between darktable an wayland. However, I cannot check how reliable such information is because I don't have enough technical knowledge.

Which way would be the preferable one for darktable? Letting darktable do its own color management (then darktable should somehow be able to tell this to wayland), or leaving color management to wayland? My feeling is that it's the first one, since apparently that's how the Krita devs approached this.

Or is this simply something that's impossible to do in darktable?

I am constantly doing research about this and I am willing to continue if none else does, but for me this seems quite difficult, as a humanist with some very minor coding skills I am not the most qualified person for this.

The easiest workaround that I could think of is letting darktable check if wayland color management is active when it starts, and if yes, switching it temporarily off as long as the darktable window is open. Would this be better than nothing?

blitzgneisserin avatar Sep 11 '25 17:09 blitzgneisserin

For me no one is looking at this. I have never looked at what this involves (using Wayland color management which just landed IINM). Any information about this can be posted here to ensure that when it is time to work on this we have the proper information.

TurboGit avatar Sep 11 '25 17:09 TurboGit

Another theoretical workaround might be this: if wayland color management is on and darktable Color Management is on, there is double colour management and the colors are not saturates enough. So theoretically, it could be possible to have correct colors if one creates a monitor profile that saturates the right colors - so that profile should be smaller than the actual gamut of the screen, and even smaller than srgb. Maybe it is possible to create such an „artificial“ profile with agyll/displaycal? A „wrong“ profile that does the opposite than the actual monitor profile?

blitzgneisserin avatar Sep 11 '25 19:09 blitzgneisserin

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Nov 11 '25 00:11 github-actions[bot]

I would love to see the route this issue takes, especially since KWin and Krita (just to name a few) support the Wayland Colour Management system. Would definitely help with colour accuracy under Wayland, in a time when X seems to be stagnating. Darktable being ported to GTK4 is a work in progress but it seems to be undergoing nicely

rforzachamp821 avatar Apr 23 '26 12:04 rforzachamp821

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Jun 23 '26 00:06 github-actions[bot]

Bump

Would be good to see proper color management for Darktable under Wayland!

reed-smout avatar Jun 23 '26 01:06 reed-smout

Bump, a feature in need for a KDE/Wayland user!

yikerman avatar Jul 21 '26 18:07 yikerman

This issue has been marked as stale due to inactivity for the last 60 days. It will be automatically closed in 300 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.

github-actions[bot] avatar Sep 20 '26 00:09 github-actions[bot]

Bump, still relevant afaik!

reed-smout avatar Sep 20 '26 01:09 reed-smout