imdi/cctiff
Summary
Color convert a TIFF file using a sequence of compatible ICC device
profiles, abstract profiles and device link profiles.
Usage
cctiff [-options] { [-i intent] profile.icm ...} infile.tif outfile.tif
-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.
-r n
Override the
default CLUT resolution
-o intent
Choose last profiles
intent
-e n
Choose TIFF
output encoding from 1..n
-a
Read and Write planes > 4 as alpha
planes
-l
This flag is ignored for backwards
compatibility
Then for each profile in sequence:
-i intent
Profile intent
p = perceptual, r = relative colorimetric,
s =
saturation, a = absolute colorimetric
profile.icm A
Device, Link or Abstract 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 -ir sRGB.icm -ir CMYKprinter.icm infile.tif outfile.tif
cctiff devicelink.icm infile.tif outfile.tif
cctiff -ir sRGB.icm abstract.icm -ir CMYK.icm devlink.icm infile.tif
outfile.tif
cctiff -ir sRGB.icm rgbfile.tif labfile.tif
Comments
The -v flag
reports extra information about the ICC
profile.
The
-c, -p, -k
and -r options are intended to
aid debugging.
The -o
parameter is for backwards compatibility, and
sets the intent of the last profile in the chain.
Some colorspaces can be encoded in more than one way.
If there is a choice, the choice should be specified the -o parameter.
If the parameter is needed, then cctiff will issue an error that
describes
the possible choices (ie. TIFF LAB encoding).
Normally colorspaces that have more than 4 channels
will be read and written as multichannel TIFF files. These are not
handled well by all applications, so the -a option causes extra channels
above 4 to be stored as alpha planes, providing more flexibility in
using such files.
The -l option
is just for backwards compatibility.
Following these global options, you should specify the chain of
profiles you want to apply. Each link of the chain consists of the
(optional) intent to be used for device profiles, and the filename of
the profile. The first profiles input colorspace must be compatible
with the input TIFF file, and each profiles output space must be
compatible with the next profiles input space. An error will result if
this is not the case.
The -i
parameters
selects the intent for the following device profile. Normally
the same intent should be used for all device profiles.
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 (The limit
can be lifted to 15 without any trouble).