10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
13666N/A<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
10139N/A<!ENTITY exam-tt "EXAMPLES">
10139N/A<!ENTITY cmd "tiffcp">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub Inc>
10139N/A<refentry id="tiffcp-1">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>tiffcp</refentrytitle><manvolnum>1</manvolnum>
10139N/A<refmiscinfo class="date">26 Mar 2004</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
10139N/A<indexterm><primary>tiffcp</primary></indexterm><indexterm><primary>copy,
10139N/Aand possibly convert, a TIFF file</primary></indexterm>
10139N/A<refnamediv id="tiffcp-1-name"><refname>tiffcp</refname><refpurpose>copy,
10139N/Aand possibly convert, a TIFF file</refpurpose></refnamediv>
10139N/A<refsynopsisdiv id="tiffcp-1-synp"><title>&synp-tt;</title>
10139N/A<cmdsynopsis><command>&cmd;</command><arg choice="opt"><option role="nodash"><replaceable>
10139N/Aoptions</replaceable></option></arg><arg choice="plain" rep="repeat"><option
10139N/Arole="nodash"><replaceable>src1.tif</replaceable></option></arg><arg choice="plain"
10139N/Arep="norepeat"><option role="nodash"><replaceable>srcN.tif</replaceable></option></arg>
10139N/A<arg choice="plain"><option role="nodash"><replaceable>dest.tif</replaceable></option></arg>
10139N/A</cmdsynopsis></refsynopsisdiv>
10139N/A<refsect1 id="tiffcp-1-desc"><title>&desc-tt;</title>
10139N/A<para><command>&cmd;</command> combines one or more files created according
10139N/Ato the Tag Image File Format, Revision 6.0 into a single TIFF file. The output
10139N/Afile might be compressed using a different algorithm than the input files.
10139N/ATherefore. <command>&cmd;</command> is most often used to convert between
10139N/Adifferent compression schemes.</para>
10139N/A<para>By default, <command>&cmd;</command> copies all of the understood tags
10139N/Ain a TIFF directory of an input file, to the associated directory in the output
10139N/Afile.</para>
10139N/A<para><command>&cmd;</command> can be used to reorganize the storage characteristics
10139N/Aof data in a file, but is explicitly intended to not alter or convert the
10139N/Aimage data content in any way.</para>
10139N/A</refsect1>
10139N/A<refsect1 id="tiffcp-1-opts"><title>&opts-tt;</title>
10139N/A<para>The following options are supported:</para>
10139N/A<variablelist termlength="narrow">
10139N/A<varlistentry><term><option>B</option></term><listitem><para>Force output
10139N/Ato be written with Big-Endian byte order. This option only has an effect when
10139N/Athe output file is created or overwritten. This option has no effect when
10139N/Ayou append to the output file.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>C</option></term><listitem><para>Suppress the
10139N/Ause of &ldquo;strip chopping&rdquo; when reading images that have a single
10139N/Astrip or tile of uncompressed data.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c</option></term><listitem><para>Specify a compression
10139N/Ascheme to use when writing image data:</para>
10139N/A<variablelist>
10139N/A<varlistentry><term><option>c g3</option></term><listitem><para>CCITT Group
10139N/A3 compression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c g4</option></term><listitem><para>CCITT Group
10139N/A4 compression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c jpeg</option></term><listitem><para>Baseline
10139N/AJPEG compression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c lzw</option></term><listitem><para>Lempel-Ziv
11904N/Aand Welch algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c none</option></term><listitem><para>No compression.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c packbits</option></term><listitem><para>PackBits
10139N/Acompression algorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>c zip</option></term><listitem><para>Deflate compression
10139N/Aalgorithm.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist><para>By default, <command>&cmd;</command> compresses data
10139N/Aaccording to the value of the Compression tag found in the source file.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>f</option></term><listitem><para>Specify the bit
10139N/Afill order to use to write output data. By default, <command>&cmd;</command>
10139N/Acreates a new file with the same fill order as the original. Specify <option>
10139N/Af lsb2msb</option> to force data to be written with the FillOrder tag set
10139N/Ato LSB2MSB. Specify <option>f msb2lsb</option> to force data to be written
10139N/Awith the FillOrder tag set to MSB2LSB.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>l</option></term><listitem><para>Specify the length
10139N/Aof a tile in pixels. <command>&cmd;</command> attempts to set the tile dimensions
10139N/Aso that no more than 8 kilobytes of data appear in a tile.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>L</option></term><listitem><para>Force output
10139N/Ato be written with Little-Endian byte order. This option only has an effect
10139N/Awhen the output file is created or overwritten. This option has no effect
10139N/Awhen you append to the output file.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>M</option></term><listitem><para>Suppress the
10139N/Ause of memory-mapped files when reading images.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>p</option></term><listitem><para>Explicitly select
10139N/Athe planar configuration used to write image data that has one 8-bit sample
10139N/Aper pixel. By default, <command>&cmd;</command> creates a new file with the
10139N/Asame planar configuration as the original.</para>
10139N/A<variablelist>
10139N/A<varlistentry><term><option>p contig</option></term><listitem><para>Samples
10139N/Aare packed contiguously.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>p separate</option></term><listitem><para>Samples
10139N/Aare stored separately.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></listitem></varlistentry>
10139N/A<varlistentry><term><option>r</option></term><listitem><para>Write data with
10139N/Aa specified number of rows per strip. By default, the number of rows per strip
10139N/Ais selected so that each strip is approximately 8 kilobytes.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>s</option></term><listitem><para>Force the output
10139N/Afile to be written with data organized in strips instead of tiles.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>t</option></term><listitem><para>Force the output
10139N/Afile to be written with data organized in tiles instead of strips.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option>w</option></term><listitem><para>Specify the width
10139N/Aof a tile in pixels. <command>&cmd;</command> attempts to set the tile dimensions
10139N/Aso that no more than 8 kilobytes of data appear in a tile.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="tiffcp-1-oper"><title>&oper-tt;</title>
10139N/A<para>The following operands are supported:</para>
10139N/A<variablelist termlength="narrow">
10139N/A<varlistentry><term><option role="nodash"><replaceable>src.tif</replaceable></option></term>
10139N/A<listitem><para>The name of the source file.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash"><replaceable>dest.tif</replaceable></option></term>
10139N/A<listitem><para>The name of the destination file.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="tiffcp-1-exde"><title>&exde-tt;</title>
10139N/A<para>The CCITT Group 3 and Group 4 compression algorithms can only be used
10139N/Awith bilevel data.</para>
10139N/A<para>Group 3 compression can be specified together with several T.4-specific
10139N/Aoptions:</para>
10139N/A<variablelist>
10139N/A<varlistentry><term><option role="nodash">1d</option></term><listitem><para>
10139N/A1-dimensional encoding</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">2d</option></term><listitem><para>
10139N/A2-dimensional encoding</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><option role="nodash">fill</option></term><listitem><para>
10139N/AForce each encoded scanline to be zero-filled so that the terminating EOL
10139N/Acode lies on a byte boundary.</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist><para>Group 3-specific options are specified by appending a
10139N/Acolon-separated list to the <option role="nodash">g3</option> option. For
10139N/Aexample, specify <option>c</option> <option role="nodash">g3:2d:fill</option>
10139N/Ato get 2D-encoded data with byte-aligned EOL codes.</para>
10139N/A<para>LZW compression can be specified together with a predictor value. A
10139N/Apredictor value of 2 causes each scanline of the output image to undergo horizontal
10139N/Adifferencing before being encoded. A predictor value of 1 forces each scanline
10139N/Ato be encoded without differencing.</para>
10139N/A<para>LZW-specific options are specified by appending a colon-separated list
10139N/Ato the <option role="nodash">lzw</option> option. For example, specify <option>
10139N/Ac</option> <option role="nodash">lzw:2</option> for LZW compression with horizontal
10139N/Adifferencing.</para>
10139N/A</refsect1>
10139N/A<refsect1 id="tiffcp-1-exam"><title>&exam-tt;</title>
10139N/A<example role="example">
10139N/A<title>Concatenating Two Files and Writing the Result Using LZW Encoding</title>
10139N/A<para><screen>example% <userinput>&cmd; -c lzw a.tif b.tif result.tif</userinput></screen></para>
10139N/A</example>
10139N/A<example role="example">
10139N/A<title>Converting a G3 1d-Encoded TIFF to a Single Strip of G4-Encoded Data
10139N/A</title>
10139N/A<para><screen>example% <userinput>&cmd; -c g4 -r 10000 g3.tif g4.tif</userinput></screen></para>
10139N/A<para>In this example, 1000 is a number that is larger than the number of
10139N/Arows in the source file.</para>
10139N/A</example>
10139N/A</refsect1>
10139N/A<refsect1 id="tiffcp-1-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
18745N/A<row><entry><para>Availability</para></entry><entry><para>image/library/libtiff</para></entry>
10139N/A</row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
13623N/Acolname="COLSPEC1"><para>Uncommitted</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="tiffcp-1-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
10139N/A<para><citerefentry><refentrytitle>pal2rgb</refentrytitle><manvolnum>1</manvolnum>
10139N/A</citerefentry>, <citerefentry><refentrytitle>tiffinfo</refentrytitle><manvolnum>
10139N/A1</manvolnum></citerefentry>, <citerefentry><refentrytitle>tiffcmp</refentrytitle>
10139N/A<manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>tiffmedian
10139N/A</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>
10139N/Atiffsplit</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry>
10139N/A<refentrytitle>libtiff</refentrytitle><manvolnum>3</manvolnum></citerefentry></para>
10139N/A</refsect1>
10139N/A<refsect1 id="tiffcp-1-note"><title>&note-tt;</title>
10139N/A<para>Updated by Breda McColgan, Sun Microsystems Inc., 2004.</para>
10139N/A</refsect1>
10139N/A</refentry>