roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>TIFFCP</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

TIFFCP

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
OPTIONS
roentgen b75cab
EXAMPLES
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiffcp − copy (and possibly convert) a

roentgen b75cab
<small>TIFF</small> file

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiffcp [ options ] src1.tif ... srcN.tif

roentgen b75cab
dst.tif

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

tiffcp combines one or more files created

roentgen b75cab
according to the Tag Image File Format, Revision 6.0 into a
roentgen b75cab
single <small>TIFF</small> file. Because the output file may
roentgen b75cab
be compressed using a different algorithm than the input
roentgen b75cab
files, tiffcp is most often used to convert between
roentgen b75cab
different compression schemes.

roentgen b75cab
roentgen b75cab

By default, tiffcp will copy all the understood

roentgen b75cab
tags in a <small>TIFF</small> directory of an input file to
roentgen b75cab
the associated directory in the output file.

roentgen b75cab
roentgen b75cab

tiffcp can be used to reorganize the storage

roentgen b75cab
characteristics of data in a file, but it is explicitly
roentgen b75cab
intended to not alter or convert the image data content in
roentgen b75cab
any way.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

OPTIONS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−b image

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

subtract the following monochrome image from all others

roentgen b75cab
processed. This can be used to remove a noise bias from a
roentgen b75cab
set of images. This bias image is typically an image of
roentgen b75cab
noise the camera saw with its shutter closed.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−B

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be written with Big-Endian byte order.

roentgen b75cab
This option only has an effect when the output file is
roentgen b75cab
created or overwritten and not when it is appended to.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−C

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Suppress the use of ‘‘strip

roentgen b75cab
chopping’’ when reading images that have a
roentgen b75cab
single strip/tile of uncompressed data.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−c

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the compression to use for data written to the

roentgen b75cab
output file: none for no compression, packbits
roentgen b75cab
for PackBits compression, lzw for Lempel-Ziv &
roentgen b75cab
Welch compression, jpeg for baseline JPEG
roentgen b75cab
compression, zip for Deflate compression, g3
roentgen b75cab
for CCITT Group 3 (T.4) compression, and g4 for CCITT
roentgen b75cab
Group 4 (T.6) compression. By default tiffcp will
roentgen b75cab
compress data according to the value of the
roentgen b75cab
Compression tag found in the source file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The <small>CCITT</small> Group 3 and Group 4 compression

roentgen b75cab
algorithms can only be used with bilevel data.

roentgen b75cab
roentgen b75cab

Group 3 compression can be specified together with

roentgen b75cab
several T.4-specific options: 1d for 1-dimensional
roentgen b75cab
encoding, 2d for 2-dimensional encoding, and
roentgen b75cab
fill to force each encoded scanline to be zero-filled
roentgen b75cab
so that the terminating EOL code lies on a byte boundary.
roentgen b75cab
Group 3-specific options are specified by appending a
roentgen b75cab
‘‘:’’-separated list to the
roentgen b75cab
‘‘g3’’ option; e.g. −c
roentgen b75cab
g3:2d:fill to get 2D-encoded data with byte-aligned EOL
roentgen b75cab
codes.

roentgen b75cab
roentgen b75cab

<small>LZW</small> compression can be specified together

roentgen b75cab
with a predictor value. A predictor value of 2 causes
roentgen b75cab
each scanline of the output image to undergo horizontal
roentgen b75cab
differencing before it is encoded; a value of 1 forces each
roentgen b75cab
scanline to be encoded without differencing. LZW-specific
roentgen b75cab
options are specified by appending a
roentgen b75cab
‘‘:’’-separated list to the
roentgen b75cab
‘‘lzw’’ option; e.g. −c
roentgen b75cab
lzw:2 for <small>LZW</small> compression with horizontal
roentgen b75cab
differencing.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−f

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the bit fill order to use in writing output

roentgen b75cab
data. By default, tiffcp will create a new file with
roentgen b75cab
the same fill order as the original. Specifying −f
roentgen b75cab
lsb2msb will force data to be written with the FillOrder
roentgen b75cab
tag set to <small>LSB2MSB,</small> while −f
roentgen b75cab
msb2lsb will force data to be written with the FillOrder
roentgen b75cab
tag set to <small>MSB2LSB.</small>

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−i

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Ignore non-fatal read errors and continue processing of

roentgen b75cab
the input file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−l

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the length of a tile (in pixels). tiffcp

roentgen b75cab
attempts to set the tile dimensions so that no more than 8
roentgen b75cab
kilobytes of data appear in a tile.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−L

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be written with Little-Endian byte

roentgen b75cab
order. This option only has an effect when the output file
roentgen b75cab
is created or overwritten and not when it is appended
roentgen b75cab
to.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−M

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Suppress the use of memory-mapped files when reading

roentgen b75cab
images.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−p

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the planar configuration to use in writing image

roentgen b75cab
data that has one 8-bit sample per pixel. By default,
roentgen b75cab
tiffcp will create a new file with the same planar
roentgen b75cab
configuration as the original. Specifying −p
roentgen b75cab
contig will force data to be written with multi-sample
roentgen b75cab
data packed together, while −p separate will
roentgen b75cab
force samples to be written in separate planes.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−r

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the number of rows (scanlines) in each strip of

roentgen b75cab
data written to the output file. By default (or when value
roentgen b75cab
0 is specified), tiffcp attempts to set the
roentgen b75cab
rows/strip that no more than 8 kilobytes of data appear in a
roentgen b75cab
strip. If you specify special value −1 it will
roentgen b75cab
results in infinite number of the rows per strip. The entire
roentgen b75cab
image will be the one strip in that case.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−s

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force the output file to be written with data organized

roentgen b75cab
in strips (rather than tiles).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−t

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force the output file to be written with data organized

roentgen b75cab
in tiles (rather than strips). options can be used to force
roentgen b75cab
the resultant image to be written as strips or tiles of
roentgen b75cab
data, respectively.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−w

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the width of a tile (in pixels). tiffcp

roentgen b75cab
attempts to set the tile dimensions so that no more than 8
roentgen b75cab
kilobytes of data appear in a tile. tiffcp attempts
roentgen b75cab
to set the tile dimensions so that no more than 8 kilobytes
roentgen b75cab
of data appear in a tile.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−x

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force the output file to be written with PAGENUMBER value

roentgen b75cab
in sequence.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−,=character

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

substitute character for ‘,’ in

roentgen b75cab
parsing image directory indices in files. This is necessary
roentgen b75cab
if filenames contain commas. Note that −,= with
roentgen b75cab
whitespace immediately following will disable the special
roentgen b75cab
meaning of the ‘,’ entirely. See examples.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

EXAMPLES

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The following concatenates two files and writes the

roentgen b75cab
result using <small>LZW</small> encoding:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiffcp −c lzw a.tif b.tif result.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

To convert a G3 1d-encoded <small>TIFF</small> to a

roentgen b75cab
single strip of G4-encoded data the following might be
roentgen b75cab
used:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiffcp −c g4 −r 10000 g3.tif g4.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

(1000 is just a number that is larger than the number of

roentgen b75cab
rows in the source file.)

roentgen b75cab
roentgen b75cab

To extract a selected set of images from a multi-image

roentgen b75cab
TIFF file, the file name may be immediately followed by a
roentgen b75cab
‘,’ separated list of image directory indices.
roentgen b75cab
The first image is always in directory 0. Thus, to copy the
roentgen b75cab
1st and 3rd images of image file
roentgen b75cab
‘‘album.tif’’ to
roentgen b75cab
‘‘result.tif’’:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiffcp album.tif,0,2 result.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

A trailing comma denotes remaining images in sequence.

roentgen b75cab
The following command will copy all image with except the
roentgen b75cab
first one:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiffcp album.tif,1, result.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Given file ‘‘CCD.tif’’ whose

roentgen b75cab
first image is a noise bias followed by images which include
roentgen b75cab
that bias, subtract the noise from all those images
roentgen b75cab
following it (while decompressing) with the
roentgen b75cab
command:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiffcp −c none −b CCD.tif CCD.tif,1, result.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

If the file above were named

roentgen b75cab
‘‘CCD,X.tif’’, the −,=
roentgen b75cab
option would be required to correctly parse this filename
roentgen b75cab
with image numbers, as follows:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
tiffcp −c none −,=% −b CCD,X.tif CCD,X%1%.tif result.tif
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

pal2rgb(1), tiffinfo(1), tiffcmp(1),

roentgen b75cab
tiffmedian(1), tiffsplit(1),
roentgen b75cab
libtiff(3TIFF)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab