<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>cctiff</title> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <meta name="author" content="Graeme Gill"> </head> <body> <h2><b>imdi/cctiff</b></h2> <h3>Summary</h3> Color convert a TIFF file using a sequence of compatible ICC device profiles, abstract profiles and device link profiles.<br> <h3>Usage<br> </h3> <small><span style="font-family: monospace;"></span><i style="font-family: monospace;"></i> <span style="font-family: monospace;"></span><span style="font-family: monospace;">cctiff [-options] { [-i intent] <span style="font-style: italic;">profile.icm</span> ...} <span style="font-style: italic;">infile.tif outfile.tif</span></span></small><small><span style="font-family: monospace;"></span><i style="font-family: monospace;"></i><br style="font-family: monospace;"> <span style="font-family: monospace;"></span><span style="font-family: monospace;"></span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#v">-v</a><span style="font-family: monospace;"> Verbose</span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#c">-c</a><span style="font-family: monospace;"> Combine linearisation curves into one transform</span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#p">-p</a><span style="font-family: monospace;"> Use slow precise floating point conversion, rather than fast integer routines.</span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#k">-k</a><span style="font-family: monospace;"> Check fast result against precise, and report differences.<br> </span></small><small><span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#r">-r n<span style="font-style: italic;"></span></a><span style="font-family: monospace;"> Override the default CLUT resolution<br> </span></small><small><span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#o">-o <span style="font-style: italic;">intent</span></a><span style="font-family: monospace;"> Choose last profiles intent<br> </span></small><small><span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#e">-e n<span style="font-style: italic;"></span></a><span style="font-family: monospace;"> Choose TIFF output encoding from 1..n<br> </span></small><small><span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#a">-a</a><span style="font-family: monospace;"> Read and Write planes > 4 as alpha planes<br> </span></small><small><span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#l">-l</a><span style="font-family: monospace;"> This flag is ignored for backwards compatibility<br> <br> Then for each profile in sequence:<br style="font-family: monospace;"> </span></small><small><span style="font-family: monospace;"></span></small><small><span style="font-family: monospace;"></span><span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#i">-i <span style="font-style: italic;">intent</span></a><span style="font-family: monospace;"> Profile intent</span><br style="font-family: monospace;"> <span style="font-family: monospace;"> p = perceptual, r = relative colorimetric,</span><br style="font-family: monospace;"> <span style="font-family: monospace;"> s = saturation, a = absolute colorimetric</span><span style="font-family: monospace;"></span></small><small><span style="font-family: monospace;"></span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#p1"><i>profile.icm</i></a><span style="font-family: monospace;"> A Device, Link or Abstract profile.</span><span style="font-family: monospace;"></span><span style="font-family: monospace;"></span><span style="font-family: monospace;"></span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#p2"><i>infile.tif</i></a><span style="font-family: monospace;"> A </span><a style="font-family: monospace;" href="File_Formats.html#TIFF">TIFF</a><span style="font-family: monospace;"> Raster file that will be the input raster to be transformed.</span><br style="font-family: monospace;"> <span style="font-family: monospace;"> </span><a style="font-family: monospace;" href="#p3"><i>outfile.tif</i></a><span style="font-family: monospace;"> A </span><a style="font-family: monospace;" href="File_Formats.html#TIFF">TIFF</a><span style="font-family: monospace;"> Raster file created from the input raster, using the given color transform.</span></small><b><br> </b><b><br> Examples</b><br> <br> cctiff -ir sRGB.icm -ir CMYKprinter.icm infile.tif outfile.tif<br> <br> cctiff devicelink.icm infile.tif outfile.tif<br> <br> cctiff -ir sRGB.icm abstract.icm -ir CMYK.icm devlink.icm infile.tif outfile.tif<br> <br> cctiff -ir sRGB.icm rgbfile.tif labfile.tif <h3>Comments<br> </h3> <a name="v"></a> The <span style="font-weight: bold;">-v</span> flag reports extra information about the ICC profile.<br> <br> <a name="c"></a><a name="p"></a><a name="k"></a><a name="r"></a> The <span style="font-weight: bold;">-c</span>, <span style="font-weight: bold;">-p</span>, <span style="font-weight: bold;">-k</span> and <span style="font-weight: bold;">-r</span> options are intended to aid debugging.<br> <br> <a name="o"></a>The <span style="font-weight: bold;">-o</span> parameter is for backwards compatibility, and sets the intent of the last profile in the chain.<br> <br> <a name="e"></a>Some colorspaces can be encoded in more than one way. If there is a choice, the choice should be specified the <span style="font-weight: bold;">-o</span> parameter. If the parameter is needed, then cctiff will issue an error that describes the possible choices (ie. TIFF LAB encoding).<br> <br> <a name="a"></a>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 <span style="font-weight: bold;">-a</span> option causes extra channels above 4 to be stored as alpha planes, providing more flexibility in using such files.<br> <br> <a name="l"></a>The <span style="font-weight: bold;">-l</span> option is just for backwards compatibility.<br> <br> 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.<br> <br> <a name="p1"></a>The <span style="font-weight: bold;">-i</span> parameters selects the intent for the following device profile. Normally the same intent should be used for all device profiles.<br> <br> <a name="p2"></a>The second last argument should be the name of the TIFF file that is to be processed.<br> <br> <a name="p3"></a>The last argument should be the name of the TIFF file to hold the results.<br> <br> <span style="font-weight: bold;">cctiff</span> 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).<br> <br> <br> <br> <br> <br> </body> </html>