It is a library package for the development of applications that require color management and as its author Marti Maria comments: “A color management engine that consumes few resources and with special emphasis on accuracy and performance.”
Unless we are developers, it is unlikely that this suite will catch our attention; however, like other situations, it includes a small collection of binaries inside that may be useful or at least curious to us.
LittleCMS can be downloaded from the author’s website or directly from Sourceforge http://sourceforge.net/projects/lcms/files/
For its use, we must proceed to compile the source code. However, to make some applications based on TIFF file management functional, it is necessary to download the LibTiff library.
To compile this library, we do the usual: ./configure; make; sudo make install.
Similarly, if we want to work with jpeg files, it is necessary to install Tom Lane’s libraries: http://www.ijg.org. The compilation process must also be carried out.
After successfully installing LibTiff, we can execute the same compilation sequence on the LittleCMS directory. If all goes well, the binaries are installed in the usual /usr/local/bin, so they will be available from the command line.
Another possibility is to download a small zip uploaded at the following path: http://www.littlecms.com/1/mac/lcms-1.19.mac.bin.zip
In this package, we already find the compiled binaries: icc2ps, icclink, icctrans, jpegicc, tiffdiff, tifficc, wtpt. As well as the necessary libraries for these to function. To install these binaries, we must move the files to the corresponding directories of our operating system:
sudo cp -r /Users/[usuario]/Downloads/lcms-1.19.mac.bin/bin/* /usr/local/bin/ sudo cp -r /Users/[usuario]/Downloads/lcms-1.19.mac.bin/include/* /usr/local/include/ sudo cp -r /Users/[usuario]/Downloads/lcms-1.19.mac.bin/lib/* /usr/local/lib/ sudo cp -r /Users/[usuario]/Downloads/lcms-1.19.mac.bin/share/* /usr/local/share/
The most curious applications I have had the opportunity to try are:
transicc (icctrans)
This application allows us to perform RGB color conversions between different color spaces, in addition to recently incorporating an option to perform softproof.
LittleCMS ColorSpace conversion calculator - v3.3 usage: icctrans [flags] [CGATS input] [CGATS output] flags: -v - Verbose (Print PCS as well) -w - use 16 bits -5 - don't use % on inks (always 0..255, even on CMYK) -x - Hexadecimal -q - Quantize CGATS to 8 bits -i<profile> - Input profile (defaults to sRGB) -o<profile> - Output profile (defaults to sRGB) -l<profile> - Transform by device-link profile You can use '*Lab', '*xyz' and others as built-in profiles -t<0,1,2,3> Intent (0=Perceptual, 1=Rel.Col, 2=Saturation, 3=Abs.Col.) -d<0..1> - Observer adaptation state (abs.col. only) -b - Black point compensation -f<n> - Preserve black (CMYK only) 0=off, 1=black ink only, 2=full K plane -c<0,1,2,3> Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) -n - Terse output, intended for pipe usage -p<profile> - Soft proof profile -m<0,1,2,3> - Soft proof intent -g - Marks out-of-gamut colors on softproof
Several usage examples are:
transicc -i AdobeRGB1998.icc -o colorcheckerFinalCut.icc transicc -i *sRGB -o *Lab transicc -i AdobeRGB1998.icc -o *Lab
If we do not define the input or output attribute, sRGB will be taken by default
This will ask us for the R-G-B values:
LittleCMS ColorSpace conversion calculator - 4.0 [LittleCMS 2.02] Enter values, 'q' to quit R? 237 G? 173 B? 26 123.5058 71.3346 0.0000
tificc
It is used to perform color space conversion operations on Tiff images.
little cms ICC profile applier for TIFF - v6.1 [LittleCMS 2.02]
usage: tifficc [flags] input.tif output.tif
flags:
-v - Verbose
-i<profile> - Input profile (defaults to sRGB)
-o<profile> - Output profile (defaults to sRGB)
-l<profile> - Transform by device-link profile
-t<n> rendering intent:
0 - Perceptual
1 - Relative colorimetric
2 - Saturation
3 - Absolute colorimetric
10 - Perceptual preserving black ink
11 - Relative colorimetric preserving black ink
12 - Saturation preserving black ink
13 - Perceptual preserving black plane
14 - Relative colorimetric preserving black plane
15 - Saturation preserving black plane
-b - Black point compensation
-d<0..1> - Observer adaptation state (abs.col. only)
-c<0,1,2,3> - Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes)
-w<8,16,32> - Output depth. Use 32 for floating-point
-a - Handle channels > 4 as alpha
-n - Ignore embedded profile on input
-e - Embed destination profile
-s<new profile> - Save embedded profile as <new profile>
-p<profile> - Soft proof profile
-m<n> - Soft proof intent
-g - Marks out-of-gamut colors on softproof
-k<0..400> - Ink-limiting in % (CMYK only)
-h<0,1,2,3> - More help
An example of its use would be:
tificc -v -e -oProPhoto_RGB.icc -t0 DSC_0038.tif DSC_0038-salida.tif
jpegicc
It is a tool similar to Tificc, but applicable exclusively to jpeg files.
usage: jpegicc [flags] input.jpg output.jpg flags: -v - Verbose -i<profile> - Input profile (defaults to sRGB) -o<profile> - Output profile (defaults to sRGB) -t<0,1,2,3> - Intent (0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute) -b - Black point compensation -f<n> - Preserve black (CMYK only) 0=off, 1=black ink only, 2=full K plane -n - Ignore embedded profile -e - Embed destination profile -s<new profile> - Save embedded profile as <new profile> -c<0,1,2,3> - Precalculates transform (0=Off, 1=Normal, 2=Hi-res, 3=LoRes) [defaults to 1] -p<profile> - Soft proof profile -m<0,1,2,3> - SoftProof intent -g - Marks out-of-gamut colors on softproof -q<0..100> - Output JPEG quality -d<0..1> - Observer adaptation state (abs.col. only) -h<0,1,2> - More help
wtpt
This small utility allows extracting information related to the white point and black body (color temperature) of an ICC color profile. If we do not specify the profile, we will be asked for the XYZ coordinates of our white point; the result is something similar to:
DSC_0038_1 WhitePoint : D50 XYZ=(1.0, 1.0, 0.8) Lab=(100.000, 0.001, -0.000) (x,y)=(0.346, 0.359) Hue=319.82, Chroma=0.00
There are other tools such as icc2ps, to convert from icc to postScript, or the usual linkicc to join two profiles to create a link-type one.
