Some applications, such as Gimp, Geeqie and Rawstudio claim to be able to use system color profile in their color management, but how do you setup such a profile? How do you see, if such a profile has been set, and if it has been set, how do you see which profile is used? I don't see how to do it in Lubuntu and Xubuntu.
This is a good question, as Xubuntu and Lubuntu don't have the same system settings > color menu that the standard Ubuntu has, and installing
gnome-color-manager
does not allow you to set the profiles in a Xubuntu or Xfce session, as you you can only use that utility properly when running a gnome session, as it depends ongnome-settings-daemon
andgnome-control-center
. This fact is clear from the useful diagram presented here in this article.System Tools
However, on Xubuntu and Lubuntu, the
colord
package is still automatically installed and takes care of color management, and you can access it on the command-line usingcolormgr
. You can query your devices such as printers and scanners by using command-line switches such ascolormgr get-devices
, which are delineated at the official site.However, while
colormgr get-devices
will list all the automatically color-managed devices on your system, it will not list display devices onxfce
.On
xfce
,colormgr get-devices-by-kind display
will not work and you will not be able to set the icc profile for the display on the command-line, but only by using tools such asxicc
orxcalib
(see further below). This is explained here by Richard Hughes:In a
gnome
orkde
session (which you could be running on Xubuntu) you should be able to usecolormgr
to entercolormgr get-devices-by-kind display
and set the icc profile for the display manually, so for completeness I present this method.You first have to add your profiles to
~/.local/share/icc
and runcolormgr get-profiles
to list them, and then choose the icc profile, such asNow add it to the desired device (this time it is the default display) with
Then you can make it default with
Other useful Utilities
Note: Custom icc profiles should go in
/home/$USER/.local/share/icc
; the system directory is/usr/share/color/icc
.It is possible to use tools such as
xicc
orxcalib
if you want to setup a specific icc profile on Xubuntu or Lubuntu. All you need do is point either of these tools at your icc profile and place that command in startup:or with
xcalib
you can specify gamma correction as well usingHowever, as the question below shows, you may need to delay the execution of the command so the system does not override your choice:
Alternatively, you may want to use
xicc
, as the profiles set with that application are designed to be picked up by certain applications such asGimp
- this is exactly what you refer to in your question, and this program is probably what you were thinking of. To load a profile, just runxicc /location/of/profile
; you can specify the display if necessary.The package notes for
xicc
explain thatAlternatively, you can usually set profiles explicitly in applications such as the Gimp (see screenshot below) and other programs. This may be necessary if you are working with RAW images that may demand a specific colorspace.
As an alternative, there is an excellent german howto all necessary things manually: http://wiki.ubuntuusers.de/Monitor_profilieren_mit_ArgyllCMS
I've just tried to work through this on Lubuntu 17.04 so this is how it worked for me. My Lubuntu system is on an old Dell laptop primarily used for emails and internet browsing with Firefox.
The first priority was to get Firefox colour managed. Fortunately it can be done in the application alone. Navigate a Firefox browser window to
and after the warning page search for
this will list the colour management properties for Firefox. Set display_profile to the location of your icc profile. It should be located in your ~/.local/share/icc/ directory ie
If no profile is set here Firefox will try to use the system profile, but we've got none set yet. Se enablev4 to
to allow v4 profiles. Set mode to
where 0 = disable colour management, 1 = enable for all rendered graphics, 2 = enable for profile tagged images only. Set rendering_intent to
where 0 = perceptual, 1 relative colormetric, 2 = saturation,3 = absolute colormetric. Restart Firefox and you are done. Test your browser by going to color.org. There is one problem here though. Whilst the browser is colour managed, the pdf preview isn't. You can check this out with the pdf version. If you send the file to the default pdf viewer Evince Document Viewer 3.24.0 it is rendered correctly though.
Firefox settings taken from NTown Productions
Although this is probably adequate for what I need, this wasn't he solution I was after so further research and a slow Sunday led me to the following which sets up colour management for the system.
Login in to synaptic and install
and
If I was doing this first, without having set up Firefox I can open a terminal (ctrl+alt+t) and use colormgr to import my display profile from any location into ~/.local/share/icc/ like this
Be careful with filenames. I had problems with white space in the filenames I created making the profiles with Argyll / DisplayCAL. It seemed best to keep the filenames short and simple. For some reason I have to run this command more than once. The first run copied the file into my icc directory, the second run actually imports the file into the colord system and reports back with a summary of the profile including meta and the profiles "object path". Next we can check that xiccd has allowed colord to interact with the display with the command
This returns a summary which includes the display device's "object path" required for adding the profile with the command
The object paths are long so I used shift+ctrl+c to copy and shift+ctrl+v to paste in my terminal window. If you run
again you should see your profile in position 1) making it the default profile. If it isn't or you want to change the default use
and removed with
Other options can be found from
To test this I used this method rawpedia and the extracticc command from the argyll package on the jpg with the mixed up sRGB profile on the color.org page, then added this to my display in the same way as above. I then blanked out the display_profile setting in Firefox prompting it to use the system profile on restart. The browser now displayed sGBR ie red for green and vice versa. Other references in addition to the answer above by user76204
ArchWiki
pcode
All offer similar advice but did not quite work on my system.
Note. The default image viewer in Lubuntu 17.04 is GPicView which is not colour managed, so use synaptic to swap it for eog or eye of gnome image viewer.