Darktable, RAW development with color management

0
684

More and more initiatives are emerging in the field of RAW development for Linux or Unix environments, and as is usually the case in these developments, they offer considerable alternatives and sometimes improvements to the more established commercial tools. All these developments have been made possible thanks to the work of Dave Coffin and his DCRAW project, on which tools like Ufraw or RawTherapee have been based. Programs like Ufraw or RawTherapee, both based on DCRAW, however, the tool that has caught my attention the most in this field is Darktable.

Darktable is a project promoted by the German Johannes Hanika around 2009, although the first stable version did not appear until early this year. Darktable relies on the LibRaw project, which in turn is based on DCRAW, and has been designed to achieve the least destructive development processes possible. Its installers have been proposed for the main Linux distributions and an experimental version for Mac OS X.

One of the main qualities of this tool that caught my attention is the good design and organization of the interface in dropdown menus with switches to activate or deactivate its controls very similarly to how Lightroom is organized, which makes it very fast and intuitive to handle.

correccion de lente pinturas rupestresLike other developers based on DCRAW, we can find tools unknown in other commercial proposals such as demosaicing controls and certain aspects of color management, being in this field where I have found the possibility of carrying out frankly interesting and precise workflows. Additionally, Darktable incorporates the LensFun database, which provides considerable precision to this tool, not only at the colorimetric level but also geometrically.

Color management with Darktable

Throughout this process, I will detail the steps to create an input color profile, or characterization, from Darktable in order to use it in the development of our images. Some controls of this tool may remind us of working with Capture One; however, in that software, it is not possible to make completely neutral developments or independent of a particular color profile. The main feature of Darktable is that it includes a color space called Linear RGB that allows obtaining completely neutral free developments.

perfiles color icc patrimonio rupestreOne of the first steps we must carry out is to disconnect all panels and, if necessary, go to the Crop and Rotate panel in order to properly isolate our color chart; similarly, we can leave Exposure or White Balance activated if it is necessary to make any adjustment at this point. The next step is to go to the color options, where we must pay attention to the following settings:

  1. Output color profile: Absolute Colorimetric intent and Linear RGB output profile
  2. Input profile: Linear RGB

At this point, we already have an image with a neutral development. To export it, we go to the Darkroom panel in the Export Selected options, choose again the absolute colorimetric intent and the linear RGB profile.

In this way, we already have a TIFF image with a truly neutral development and can move on to ArgyllCMS or my GUI Rough Profiler to create the appropriate color profile. As a recommendation, we will use a cLUT type profile with an XYZ PCS.

At this point, there is one aspect in Darktable that I have not liked very much, which is that TIFF files are created by default with zip-type compression, a situation incompatible with ArgyllCMS tools and which forces us to perform a conversion using another tool like ImageMagick to obtain an uncompressed TIFF file. On the other hand, although these compressed files have lossless compression, for the purpose of preserving such documents, it is not a very suitable strategy since difficulties in interpreting these documents may easily arise in the future.

Once our input color profile has been created, we can place it in the appropriate path, which is indicated with a tooltip when we hover our pointer over the input or output profile panel.

For example, in the case of my Mac, it was the following:

/Applications/darktable.app/Contents/Resources/share/darktable/color/in

Attention must be paid that in the Spanish translation, the “in” directory of the previous path has been translated as “entrada,” which is confusing since we must create the folders “color/in,” and this unfortunate translation can lead to misunderstandings.

Once our profile is pasted in that folder, it will be available among the Input Profile options. If we select it, we can check the results of the correction applied by the profile through the “color samples” options, another interesting function of this software.

muestras de color arqueologiaIn the “color samples” panel, we can select the sampling type, for example “area,” choose the measurement type as “average,” and finally select the color space as LAB. In this way, we can create color samples and compare them with the reference file of our color chart. In the tests I have carried out, I have achieved deltas for CIEDE00 around 2, which positions this tool as an excellent developer when seeking colorimetric precision without entering too many complications or workflows that are too complex and end up degrading the image due to excessive conversions between color spaces.

deltasPerhaps in Darktable we do not have some options that help us perform certain aesthetic corrections in our images; however, we are facing software that, in my opinion, presents itself as one of the great promises in precise RAW development, which, although it may not be necessary in the aesthetic field, in scientific photography, heritage digitization, or documentation work, colorimetric and geometric rigor are unavoidable premises.