Jump to content

Linux color management

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Brullov (talk | contribs) at 01:01, 25 April 2007 (Software for Source and Output characterization). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Linux Color Management aims at the same goal as other OS Color Management system: to achieve the best possible color reproduction throughout an imaging workflow from its source (camera, video, scanner…), onto imaging software (Digikam, GIMP, Scribus...) and finally its output (monitor, video projector, printer...).

Linux color management involves using accurate International Color Consortium profiles for devices, and using color-managed applications that are aware of these profiles. These applications perform gamut conversions between device profiles and color spaces. Gamut conversions, based on accurate device profiles, are the essence of color management.

But because of its rather new under Linux and the fact that no current desktop implements it natively, performing a good level of Color Management is probably slightly more challenging under Linux than under OS such as Microsoft Windows Vista or OSX.

Linux difficulties come first by the very thin interest the community has given to color management until very recently. Besides, although it is possible to obtain a very consistent color management workflow under Linux some problems remain:

  • Most of the calibration devices lacks drivers and proper software to operate them
  • Some necessary software such as LUT loaders can seldom be found in the package repositories of even major distributions
  • As no comprehensive solution for the whole process can be found, it usually involves spending some time to have a good understanding of both what is Color Management and then the best way to put together one’s workflow

However, compatibility, as long as the profiles use the ICC consortium standards, is very good between the various OS platform. As such, a particular profile, produced on a specific OS platform, should work on any other OS given there are the necessary software to read it and perform the conversions. This can be used as a work around for the lack of support for certain spectrophotometers or colorimeters under linux: one may simply produce a profile on another OS and use it in their Linux Color Management workflow.

Requirements for a color-managed work flow

  • Accurate device profiles obtained with source or output characterization software
  • Correctly loaded video card LUTs (or monitor profiles that do not require LUT adjustments)
  • ICC-aware (color-managed) applications that are configured to use a correct monitor profile in their gamut conversions

Software for Input and Output Profiling

Two most popular Linux tools for device profiling are:

  • Argyll Color Management System (Argyll CMS) is a command line only collection of tools. Argyll CMS covers a wide range of needs from source or output characterization to monitor LUT loading and more. However, Argyll CMS is still not available as a package in many Linux distributions today, and thus requires manual compilation and installation.
  • Lprof (or LCMS Profiler) is a GUI tool that is able to produce profiles for Cameras, Scanners and Monitors. Lprof was originally designed simply to demonstrate LittleCMS (LCMS) capabilities, but in 2005, Lprof development has been resumed by a new team. It is the only GUI-based profiling tool under Linux today, and it is available as a package from several Linux distributions.

As with any other OS platform, calibration and profiling requires:

  • to acquire through a source device (scanner, camera…) a color patch target that the profiling software will compare to the manufacturer-provided color values of the target.
  • or for output (monitor, printer), reading with a specific device (spectrophotometer, colorimeter or spectrocolorimeter) the value of color patches and comparing the measured color values against the values originally sent for output.

To produce a profile for a source device is usually simple with Argyll CMS or Lprof, provided the device is supported under linux. Producing a profile for an output device can be more involved as not many spectrophotometers or colorimeters are currently supported under Linux.

Monitor Calibration and Profiling

General Considerations

One of the critical pieces in any color managed workflow is the monitor. Because, at one step or another, handling and making color adaptation through an Imaging Software is required for most images, the capability for the monitor to deliver colors as accurate as possible is important.

Monitor calibration on a computer is done preferably with a colorimeter and software that supports it. In most cases, a monitor profile created by the calibration software (whether it relies on a hardware device or on user input) includes both an accurate description of monitor output and instructions to the video card to change the colors it displays. Video card lookup table (LUT) adjustments are usually required to help the display reach the white point and gamma desired by the user.

Monitor calibration is, in that respect, different from calibration of other devices. A monitor profile created by calibration software (as opposed to the profiles supplied by monitor manufacturers) usually includes instructions to the video card that are stored in a special "vcgt" tag of the profile.

Video card LUT adjustments need to be loaded for a monitor to match the description in the profile. Mac OS X loads LUT adjustments automatically, while Linux and Microsoft Windows require standalone LUT loaders. Although such loaders perform just as good a job when adjusting video card output as the operating system would, their existence tends to confuse many people with regards to the function these loaders perform.

Monitor Calibration and Profiling: Linux implementation

Device profiles

ICC profiles are cross-platform and can thus be created on other operating systems and used under Linux. Monitor profiles, however, require some additional attention. Since a monitor profile depends both on the monitor itself and on the video card, a monitor profile should only be used with the same monitor and video card with which it was created. The monitor settings should not be adjusted after creating the profile. In addition, since most calibration software use LUT adjustments during calibration, the corresponding LUTs must be loaded every time the X server is started (e.g. with every graphical login).

For users of certain colorimeters such as Xrite DTP-94 and Xrite DTP-92 that come in Monaco OPTIX and ColorEyes bundles, there is an option for calibrating their monitors on Linux. For native Linux monitor calibration, they would need to install Argyll Color Management System (also available from Softpedia). Argyll CMS is a set of command-line utilities. Its dispcal module will let you natively calibrate a monitor under Linux.

To avoid using command-line utilities, or if a colorimeter is unsupported by Argyll CMS (such as Spyder2 or EyeOne), a profile created under Windows or Mac OS X can be used under Linux. Normally the profile has to be created on the same machine with the same monitor settings.

Display-channel lookup tables

There are two approaches to loading display channel LUTs:

  • Create a profile that does not modify video card LUTs and thus does not require LUTs be loaded later on. Ideally, this approach would rely on DDC-capable monitors—the internal monitor settings of which are set via calibration software. Unfortunately, monitors capable of making these adjustments through DDC are not common and are generally expensive. Moreover, there is presently no calibration software on Linux that can interact with a DDC monitor.

    For mainstream monitors, a couple of options exist. BasICColor software, which works with most colorimeters on the market, allows one to adjust display output via the monitor interface, and then to choose a "Profile, do not calibrate" option. By doing this, one can create a profile that does not require video card LUT adjustments.

    For EyeOne devices, EyeOne Match allows the user to calibrate to "Native" gamma and white point targets, which results in the LUT adjustment curves displayed after the calibration as a simple, linear 1:1 mapping (a straight line from corner to corner). Both BasICColor and EyeOne Match do not presently run under Linux but they are capable of creating a profile that does not require LUT adjustments.

  • Use an LUT loader to actually load the LUT adjustments contained within the profile prepared during calibration. According to the documentation, these loaders do not modify the video card LUT by itself, but achieve the same type of adjustment by modifying the X server gamma ramp. Loaders are available for Linux distributions that use X.org or XFree86—the two most popular X servers on Linux. Other X servers are not guaranteed to work with the currently available loaders. There are two LUT loaders available for Linux:
    • Xcalib is one such loader, and although it is a command-line utility, it is quite easy to use.
    • dispwin is a part of Argyll CMS.

If, for any reason, the LUT cannot be loaded, it is still recommended to go through the initial stages of calibration where a user is asked by calibration software to make some manual adjustments to the monitor, as this will often improve display linearity and also provide information on its colour temperature. This is especially recommended for CRT monitors.

Color-managed Applications

In ICC-aware applications, it is important to make sure the correct profiles are assigned to devices, mainly to the monitor and the printer. Linux applications are currently unable to automatically detect display profiles, so the profiles must be applied manually in each program.

Although there is no designated place to store device profiles on Linux, /usr/share/color/icc/ has become a de facto standard, used by several applications.

Applications running under WINE are currently untested for color accuracy. Technically, if an application performs its gamut conversion based on the same monitor profile that is used for loading the LUT, then there is no obvious reason why the result would be inaccurate. The corresponding LUT adjustments do need to be loaded though.

A list of Linux Color-managed Applications

Libraries

  • Little CMS, a small-footprint, speed-optimized, open source color management engine
  • babl, an extensible library for color conversions (used in GEGL)
  • Color 'round Linux - Several articles by Nicolas Vilars with technical installation instructions. Nicolas also checks the accuracy of Xcalib using a colorimeter.
  • Graeme Gill (2006). "Typical usage Scenarios and Examples". Argyll CMS. Retrieved 2007-01-15. {{cite web}}: External link in |publisher= (help) Argyll developer's point of view on how to use their software. A bit too technical
  • Nathan Willis (2005-03-15). "Looking good: Basic color management for X". NewsForge. Retrieved 2007-01-15. {{cite web}}: External link in |publisher= (help)CS1 maint: year (link) An overview article with no reference to accurate monitor profiling
  • "OpenIcc". freedesktop.org. Retrieved 2007-01-15. {{cite web}}: External link in |publisher= (help) Coordinated open source color management effort. Has a list of applications whose developers are taking part in the project
  • "Color management with Scribus, an Introduction". Scribus Open Source Desktop Publishing. Retrieved 2007-01-15. {{cite web}}: External link in |publisher= (help) An overview of using monitor- and printer profiles in Scribus
  • Kai-uwe Behrmann. "Behrmann.name". Retrieved 2007-01-15. Home of ICC Examin and Oyranos. Also maintains a feed of latest news in Linux color management
  • "hteeuwen". "Color management links exchange". Digital Outback Photo. Retrieved 2007-01-15. {{cite web}}: External link in |publisher= (help) The most comprehensive list of general color management links; "not related to Linux" implementation