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