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       -l     Specify the length of a tile (in pixels).   tiffcp  attempts  to
74              set the tile dimensions so that no more than 8 kilobytes of data
75              appear in a tile.
76
77       -L     Force output to be written with Little-Endian byte order.   This
78              option  only  has  an  effect when the output file is created or
79              overwritten and not when it is appended to.
80
81       -M     Suppress the use of memory-mapped files when reading images.
82
83       -p     Specify the planar configuration to use in  writing  image  data
84              that  has  one  8-bit sample per pixel.  By default, tiffcp will
85              create a new file with the  same  planar  configuration  as  the
86              original.   Specifying  -p  contig will force data to be written
87              with multi-sample data packed together, while -p  separate  will
88              force samples to be written in separate planes.
89
90       -r     Specify  the  number  of  rows (scanlines) in each strip of data
91              written to the output file.  By default  (or  when  value  0  is
92              specified),  tiffcp  attempts to set the rows/strip that no more
93              than 8 kilobytes of data appear in a strip. If you specify  spe‐
94              cial value -1 it will results in infinite number of the rows per
95              strip. The entire image will be the one strip in that case.
96
97       -s     Force the output file to  be  written  with  data  organized  in
98              strips (rather than tiles).
99
100       -t     Force the output file to be written with data organized in tiles
101              (rather than strips).  options can be used to force  the  resul‐
102              tant  image  to  be  written as strips or tiles of data, respec‐
103              tively.
104
105       -w     Specify the width of a tile (in pixels).  tiffcp attempts to set
106              the  tile  dimensions  so  that no more than 8 kilobytes of data
107              appear in a tile.  tiffcp attempts to set the tile dimensions so
108              that no more than 8 kilobytes of data appear in a tile.
109
110       -,={character}
111              substitute  {character}  for  ','  in  parsing  image  directory
112              indices in files.  This is necessary if filenames  contain  com‐
113              mas.   Note that ',=' with whitespace immediately following will
114              disable the special meaning of the ',' entirely.  See examples.
115

EXAMPLES

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

SEE ALSO

144       pal2rgb(1),  tiffinfo(1),  tiffcmp(1),   tiffmedian(1),   tiffsplit(1),
145       libtiff(3TIFF)
146
147       Libtiff library home page: http://www.remotesensing.org/libtiff/
148
149
150
151libtiff                       September 20, 2005                     TIFFCP(1)
Impressum