1TIFFCP(1)                   General Commands Manual                  TIFFCP(1)
2
3
4

NAME

6       tiffcp - copy (and possibly convert) a TIFF file
7

SYNOPSIS

9       tiffcp [ options ] src1.tif ... srcN.tif dst.tif
10

DESCRIPTION

12       tiffcp  combines  one  or more files created according to the Tag Image
13       File Format, Revision 6.0 into a single TIFF file.  Because the  output
14       file  may  be  compressed  using  a  different algorithm than the input
15       files, tiffcp is most often used to convert between different  compres‐
16       sion schemes.
17
18       By  default,  tiffcp will copy all the understood tags in a TIFF direc‐
19       tory of an input file to the associated directory in the output file.
20
21       tiffcp can be used to reorganize the storage characteristics of data in
22       a file, but it is explicitly intended to not alter or convert the image
23       data content in any way.
24

OPTIONS

26       -b image
27              subtract the following monochrome image  from  all  others  pro‐
28              cessed.   This  can be used to remove a noise bias from a set of
29              images.  This bias image is typically an image of noise the cam‐
30              era saw with its shutter closed.
31
32       -B     Force  output  to  be  written with Big-Endian byte order.  This
33              option only has an effect when the output  file  is  created  or
34              overwritten and not when it is appended to.
35
36       -C     Suppress  the use of ``strip chopping'' when reading images that
37              have a single strip/tile of uncompressed data.
38
39       -c     Specify the compression to use for data written  to  the  output
40              file:  none  for  no compression, packbits for PackBits compres‐
41              sion, lzw for Lempel-Ziv & Welch compression, jpeg for  baseline
42              JPEG  compression,  zip  for  Deflate  compression, g3 for CCITT
43              Group 3 (T.4) compression, and g4 for CCITT Group 4  (T.6)  com‐
44              pression.  By default tiffcp will compress data according to the
45              value of the Compression tag found in the source file.
46
47              The CCITT Group 3 and Group 4 compression algorithms can only be
48              used with bilevel data.
49
50              Group  3  compression  can  be  specified  together with several
51              T.4-specific options: 1d  for  1-dimensional  encoding,  2d  for
52              2-dimensional  encoding, and fill to force each encoded scanline
53              to be zero-filled so that the terminating EOL  code  lies  on  a
54              byte  boundary.   Group  3-specific  options  are  specified  by
55              appending a ``:''-separated list to the ``g3'' option; e.g.   -c
56              g3:2d:fill to get 2D-encoded data with byte-aligned EOL codes.
57
58              LZW  compression  can  be  specified  together  with a predictor
59              value.  A predictor value of 2 causes each scanline of the  out‐
60              put  image  to  undergo  horizontal  differencing  before  it is
61              encoded; a value of 1 forces each scanline to be encoded without
62              differencing.  LZW-specific options are specified by appending a
63              ``:''-separated list to the ``lzw'' option; e.g.  -c  lzw:2  for
64              LZW compression with horizontal differencing.
65
66       -f     Specify  the  bit  fill order to use in writing output data.  By
67              default, tiffcp will create a new file with the same fill  order
68              as  the  original.   Specifying -f lsb2msb will force data to be
69              written with the FillOrder tag set to LSB2MSB, while -f  msb2lsb
70              will  force  data  to  be  written with the FillOrder tag set to
71              MSB2LSB.
72
73       -i     Ignore non-fatal read errors  and  continue  processing  of  the
74              input file.
75
76       -l     Specify  the  length  of a tile (in pixels).  tiffcp attempts to
77              set the tile dimensions so that no more than 8 kilobytes of data
78              appear in a tile.
79
80       -L     Force  output to be written with Little-Endian byte order.  This
81              option only has an effect when the output  file  is  created  or
82              overwritten and not when it is appended to.
83
84       -M     Suppress the use of memory-mapped files when reading images.
85
86       -p     Specify  the  planar  configuration to use in writing image data
87              that has one 8-bit sample per pixel.  By  default,  tiffcp  will
88              create  a  new  file  with  the same planar configuration as the
89              original.  Specifying -p contig will force data  to  be  written
90              with  multi-sample  data packed together, while -p separate will
91              force samples to be written in separate planes.
92
93       -r     Specify the number of rows (scanlines) in  each  strip  of  data
94              written  to  the  output  file.   By default (or when value 0 is
95              specified), tiffcp attempts to set the rows/strip that  no  more
96              than  8 kilobytes of data appear in a strip. If you specify spe‐
97              cial value -1 it will results in infinite number of the rows per
98              strip. The entire image will be the one strip in that case.
99
100       -s     Force  the  output  file  to  be  written with data organized in
101              strips (rather than tiles).
102
103       -t     Force the output file to be written with data organized in tiles
104              (rather than strips). options can be used to force the resultant
105              image to be written as strips or tiles of data, respectively.
106
107       -w     Specify the width of a tile (in pixels).  tiffcp attempts to set
108              the  tile  dimensions  so  that no more than 8 kilobytes of data
109              appear in a tile.  tiffcp attempts to set the tile dimensions so
110              that no more than 8 kilobytes of data appear in a tile.
111
112       -x     Force  the  output  file  to be written with PAGENUMBER value in
113              sequence.
114
115       -,=character
116              substitute character for `,' in parsing image directory  indices
117              in  files.  This is necessary if filenames contain commas.  Note
118              that -,= with whitespace immediately following will disable  the
119              special meaning of the `,' entirely.  See examples.
120

EXAMPLES

122       The  following  concatenates  two files and writes the result using LZW
123       encoding:
124              tiffcp -c lzw a.tif b.tif result.tif
125
126       To convert a G3 1d-encoded TIFF to a single strip  of  G4-encoded  data
127       the following might be used:
128              tiffcp -c g4 -r 10000 g3.tif g4.tif
129       (1000  is  just  a number that is larger than the number of rows in the
130       source file.)
131
132       To extract a selected set of images from a multi-image TIFF  file,  the
133       file  name may be immediately followed by a `,' separated list of image
134       directory indices.  The first image is always in directory 0.  Thus, to
135       copy   the   1st   and  3rd  images  of  image  file  ``album.tif''  to
136       ``result.tif'':
137              tiffcp album.tif,0,2 result.tif
138
139       A trailing comma denotes remaining images in sequence.   The  following
140       command will copy all image with except the first one:
141              tiffcp album.tif,1, result.tif
142
143       Given  file  ``CCD.tif''  whose first image is a noise bias followed by
144       images which include that bias,  subtract  the  noise  from  all  those
145       images following it (while decompressing) with the command:
146              tiffcp -c none -b CCD.tif CCD.tif,1, result.tif
147
148       If  the  file  above  were named ``CCD,X.tif'', the -,= option would be
149       required to correctly parse this filename with image numbers,  as  fol‐
150       lows:
151              tiffcp -c none -,=% -b CCD,X.tif CCD,X%1%.tif result.tif
152

SEE ALSO

154       pal2rgb(1),   tiffinfo(1),   tiffcmp(1),  tiffmedian(1),  tiffsplit(1),
155       libtiff(3TIFF)
156
157       Libtiff library home page: http://www.remotesensing.org/libtiff/
158
159
160
161libtiff                        February 24, 2007                     TIFFCP(1)
Impressum