imdi/cctiff

Summary

Color convert a TIFF file using an ICC device link profile, or source and destination ICC device profiles.

Usage

cctiff [-options] devlinkprofile.icm infile.tif outfile.tif
cctiff -l [-options] [-i intent] [-o intent] inprofile.icm outprofile.icm infile.tif outfile.tif
 -l                           Link input and output device profiles, rather than using single device link profile.
 -v                          Verbose
 -c                          Combine linearisation curves into one transform
 -p                          Use slow precise floating point conversion, rather than fast integer routines.
 -k                          Check fast result against precise, and report differences.
 -i intent                 Input profile intent
                              p = perceptual, r = relative colorimetric,
                              s = saturation, a = absolute colorimetric
 -o intent                Output profile intent
                              p = perceptual, r = relative colorimetric,
                              s = saturation, a = absolute colorimetric
  devlinkprofile.icm  Device link profile. Typically created using icclink.
  inprofile.icm          A device profile that defines the input color space. Typically created using profile.
  outprofile.icm      A device profile that defines the output color space. Typically created using profile.
  infile.tif                A TIFF Raster file that will be the input raster to be transformed.
  outfile.tif              A TIFF Raster file created from the input raster, using the given color transform.

Examples


cctiff -l -ir -or sRGB.icm CMYKprinter.icm infile.tif outfile.tif

cctiff devicelink.icm infile.tif outfile.tif

Comments

The -v flag reports extra information about the ICC profile.
The -c, -p and -k options are intended to aid debugging.
The -l option allows for the linking of two ICC device profiles, "on the fly". The linking mode is the equivalent of the "simple" mode in icclink. Monochrome, RGB, CMYK and multi-channel files are processed, as well as 8 bit and 16 bit files in the TIFF raster format.
The -i and -o parameters allow selecting the intent for the source and destination profiles. Normally the same intent should be used for both.
If the -l flag is not used, then a device link profile should be provided as the first argument.
If the -l flag is being used, then the first argument should be the source device profile.
If the -l flag is being used, then the second argument should be the destination device profile.
The second last argument should be the name of the TIFF file that is to be processed.
The last argument should be the name of the TIFF file to hold the results.

cctiff uses very fast integer conversion routines to process the raster. Both 8 and 16 bit per component files can be handled, and up to 8 color channels.