1 <!-- Creator     : groff version 1.18.1 --> 
   2 <!-- CreationDate: Mon Mar 13 18:03:13 2006 --> 
   5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org"> 
   6 <meta name=
"Content-Style" content=
"text/css"> 
  11 <h1 align=center
>TIFFCP
</h1> 
  12 <a href=
"#NAME">NAME
</a><br> 
  13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br> 
  14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br> 
  15 <a href=
"#OPTIONS">OPTIONS
</a><br> 
  16 <a href=
"#EXAMPLES">EXAMPLES
</a><br> 
  17 <a href=
"#SEE ALSO">SEE ALSO
</a><br> 
  23 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  24        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  25 <tr valign=
"top" align=
"left"> 
  28 <p>tiffcp 
− copy (and possibly convert) a
 
  29 <small>TIFF
</small> file
</p> 
  32 <a name=
"SYNOPSIS"></a> 
  35 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  36        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  37 <tr valign=
"top" align=
"left"> 
  40 <p><b>tiffcp
</b> [ 
<i>options
</i> ] 
<i>src1.tif ... srcN.tif
 
  44 <a name=
"DESCRIPTION"></a> 
  47 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  48        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  49 <tr valign=
"top" align=
"left"> 
  52 <p><i>tiffcp
</i> combines one or more files created
 
  53 according to the Tag Image File Format, Revision 
6.0 into a
 
  54 single 
<small>TIFF
</small> file. Because the output file may
 
  55 be compressed using a different algorithm than the input
 
  56 files, 
<i>tiffcp
</i> is most often used to convert between
 
  57 different compression schemes.
</p> 
  59 <p>By default, 
<i>tiffcp
</i> will copy all the understood
 
  60 tags in a 
<small>TIFF
</small> directory of an input file to
 
  61 the associated directory in the output file.
</p> 
  63 <p><i>tiffcp
</i> can be used to reorganize the storage
 
  64 characteristics of data in a file, but it is explicitly
 
  65 intended to not alter or convert the image data content in
 
  69 <a name=
"OPTIONS"></a> 
  72 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  73        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  74 <tr valign=
"top" align=
"left"> 
  77 <p><b>−b image
</b></p></td> 
  80 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  81        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
  82 <tr valign=
"top" align=
"left"> 
  85 <p>subtract the following monochrome image from all others
 
  86 processed. This can be used to remove a noise bias from a
 
  87 set of images. This bias image is typically an image of
 
  88 noise the camera saw with its shutter closed.
</p> 
  92 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
  93        cols=
"5" cellspacing=
"0" cellpadding=
"0"> 
  94 <tr valign=
"top" align=
"left"> 
  98 <p><b>−B
</b></p> 
 103 <p>Force output to be written with Big-Endian byte order.
 
 104 This option only has an effect when the output file is
 
 105 created or overwritten and not when it is appended to.
</p> 
 109 <tr valign=
"top" align=
"left"> 
 110 <td width=
"10%"></td> 
 113 <p><b>−C
</b></p> 
 118 <p>Suppress the use of 
‘‘strip
 
 119 chopping
’’ when reading images that have a
 
 120 single strip/tile of uncompressed data.
</p> 
 124 <tr valign=
"top" align=
"left"> 
 125 <td width=
"10%"></td> 
 128 <p><b>−c
</b></p> 
 133 <p>Specify the compression to use for data written to the
 
 134 output file: 
<b>none
</b> for no compression, 
<b>packbits
</b> 
 135 for PackBits compression, 
<b>lzw
</b> for Lempel-Ziv 
& 
 136 Welch compression, 
<b>jpeg
</b> for baseline JPEG
 
 137 compression, 
<b>zip
</b> for Deflate compression, 
<b>g3
</b> 
 138 for CCITT Group 
3 (T
.4) compression, and 
<b>g4
</b> for CCITT
 
 139 Group 
4 (T
.6) compression. By default 
<i>tiffcp
</i> will
 
 140 compress data according to the value of the
 
 141 <i>Compression
</i> tag found in the source file.
</p> 
 147 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 148        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 149 <tr valign=
"top" align=
"left"> 
 150 <td width=
"17%"></td> 
 152 <p>The 
<small>CCITT
</small> Group 
3 and Group 
4 compression
 
 153 algorithms can only be used with bilevel data.
</p> 
 155 <p>Group 
3 compression can be specified together with
 
 156 several T
.4-specific options: 
<b>1d
</b> for 
1-dimensional
 
 157 encoding, 
<b>2d
</b> for 
2-dimensional encoding, and
 
 158 <b>fill
</b> to force each encoded scanline to be zero-filled
 
 159 so that the terminating EOL code lies on a byte boundary.
 
 160 Group 
3-specific options are specified by appending a
 
 161 ‘‘:
’’-separated list to the
 
 162 ‘‘g3
’’ option; e.g. 
<b>−c
 
 163 g3:
2d:fill
</b> to get 
2D-encoded data with byte-aligned EOL
 
 166 <p><small>LZW
</small> compression can be specified together
 
 167 with a 
<i>predictor
</i> value. A predictor value of 
2 causes
 
 168 each scanline of the output image to undergo horizontal
 
 169 differencing before it is encoded; a value of 
1 forces each
 
 170 scanline to be encoded without differencing. LZW-specific
 
 171 options are specified by appending a
 
 172 ‘‘:
’’-separated list to the
 
 173 ‘‘lzw
’’ option; e.g. 
<b>−c
 
 174 lzw:
2</b> for 
<small>LZW
</small> compression with horizontal
 
 179 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 180        cols=
"5" cellspacing=
"0" cellpadding=
"0"> 
 181 <tr valign=
"top" align=
"left"> 
 182 <td width=
"10%"></td> 
 185 <p><b>−f
</b></p> 
 190 <p>Specify the bit fill order to use in writing output
 
 191 data. By default, 
<i>tiffcp
</i> will create a new file with
 
 192 the same fill order as the original. Specifying 
<b>−f
 
 193 lsb2msb
</b> will force data to be written with the FillOrder
 
 194 tag set to 
<small>LSB2MSB,
</small> while 
<b>−f
 
 195 msb2lsb
</b> will force data to be written with the FillOrder
 
 196 tag set to 
<small>MSB2LSB.
</small></p> 
 200 <tr valign=
"top" align=
"left"> 
 201 <td width=
"10%"></td> 
 204 <p><b>−l
</b></p> 
 209 <p>Specify the length of a tile (in pixels). 
<i>tiffcp
</i> 
 210 attempts to set the tile dimensions so that no more than 
8 
 211 kilobytes of data appear in a tile.
</p> 
 215 <tr valign=
"top" align=
"left"> 
 216 <td width=
"10%"></td> 
 219 <p><b>−L
</b></p> 
 224 <p>Force output to be written with Little-Endian byte
 
 225 order. This option only has an effect when the output file
 
 226 is created or overwritten and not when it is appended
 
 231 <tr valign=
"top" align=
"left"> 
 232 <td width=
"10%"></td> 
 235 <p><b>−M
</b></p> 
 240 <p>Suppress the use of memory-mapped files when reading
 
 245 <tr valign=
"top" align=
"left"> 
 246 <td width=
"10%"></td> 
 249 <p><b>−p
</b></p> 
 254 <p>Specify the planar configuration to use in writing image
 
 255 data that has one 
8-bit sample per pixel. By default,
 
 256 <i>tiffcp
</i> will create a new file with the same planar
 
 257 configuration as the original. Specifying 
<b>−p
 
 258 contig
</b> will force data to be written with multi-sample
 
 259 data packed together, while 
<b>−p separate
</b> will
 
 260 force samples to be written in separate planes.
</p> 
 264 <tr valign=
"top" align=
"left"> 
 265 <td width=
"10%"></td> 
 268 <p><b>−r
</b></p> 
 273 <p>Specify the number of rows (scanlines) in each strip of
 
 274 data written to the output file. By default (or when value
 
 275 <b>0</b> is specified), 
<i>tiffcp
</i> attempts to set the
 
 276 rows/strip that no more than 
8 kilobytes of data appear in a
 
 277 strip. If you specify special value 
<b>-
1</b> it will
 
 278 results in infinite number of the rows per strip. The entire
 
 279 image will be the one strip in that case.
</p> 
 283 <tr valign=
"top" align=
"left"> 
 284 <td width=
"10%"></td> 
 287 <p><b>−s
</b></p> 
 292 <p>Force the output file to be written with data organized
 
 293 in strips (rather than tiles).
</p> 
 297 <tr valign=
"top" align=
"left"> 
 298 <td width=
"10%"></td> 
 301 <p><b>−t
</b></p> 
 306 <p>Force the output file to be written with data organized
 
 307 in tiles (rather than strips). options can be used to force
 
 308 the resultant image to be written as strips or tiles of
 
 309 data, respectively.
</p> 
 313 <tr valign=
"top" align=
"left"> 
 314 <td width=
"10%"></td> 
 317 <p><b>−w
</b></p> 
 322 <p>Specify the width of a tile (in pixels). 
<i>tiffcp
</i> 
 323 attempts to set the tile dimensions so that no more than 
8 
 324 kilobytes of data appear in a tile. 
<i>tiffcp
</i> attempts
 
 325 to set the tile dimensions so that no more than 
8 kilobytes
 
 326 of data appear in a tile.
</p> 
 332 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 333        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 334 <tr valign=
"top" align=
"left"> 
 337 <p><b>−,={character}
</b></p></td> 
 340 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 341        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 342 <tr valign=
"top" align=
"left"> 
 343 <td width=
"19%"></td> 
 345 <p>substitute {character} for 
’,
’ in parsing
 
 346 image directory indices in files. This is necessary if
 
 347 filenames contain commas. Note that 
’,=
’ with
 
 348 whitespace immediately following will disable the special
 
 349 meaning of the 
’,
’ entirely. See examples.
</p> 
 352 <a name=
"EXAMPLES"></a> 
 355 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 356        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 357 <tr valign=
"top" align=
"left"> 
 360 <p>The following concatenates two files and writes the
 
 361 result using 
<small>LZW
</small> encoding:
</p></td> 
 364 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 365        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 366 <tr valign=
"top" align=
"left"> 
 367 <td width=
"17%"></td> 
 369 <pre>tiffcp -c lzw a.tif b.tif result.tif
 
 375 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 376        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 377 <tr valign=
"top" align=
"left"> 
 380 <p>To convert a G3 
1d-encoded 
<small>TIFF
</small> to a
 
 381 single strip of G4-encoded data the following might be
 
 385 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 386        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 387 <tr valign=
"top" align=
"left"> 
 388 <td width=
"17%"></td> 
 390 <pre>tiffcp -c g4 -r 
10000 g3.tif g4.tif
 
 396 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 397        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 398 <tr valign=
"top" align=
"left"> 
 401 <p>(
1000 is just a number that is larger than the number of
 
 402 rows in the source file.)
</p> 
 404 <p>To extract a selected set of images from a multi-image
 
 405 TIFF file, the file name may be immediately followed by a
 
 406 ’,
’ separated list of image directory indices.
 
 407 The first image is always in directory 
0. Thus, to copy the
 
 408 1st and 
3rd images of image file 
"album.tif
" to
 
 409 "result.tif
":
</p></td> 
 412 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 413        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 414 <tr valign=
"top" align=
"left"> 
 415 <td width=
"17%"></td> 
 417 <pre>tiffcp album.tif,
0,
2 result.tif
 
 423 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 424        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 425 <tr valign=
"top" align=
"left"> 
 428 <p>Given file 
"CCD.tif
" whose first image is a
 
 429 noise bias followed by images which include that bias,
 
 430 subtract the noise from all those images following it (while
 
 431 decompressing) with the command:
</p></td> 
 434 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 435        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 436 <tr valign=
"top" align=
"left"> 
 437 <td width=
"17%"></td> 
 439 <pre>tiffcp -c none -b CCD.tif CCD.tif,
1, result.tif
 
 445 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 446        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 447 <tr valign=
"top" align=
"left"> 
 450 <p>If the file above were named 
"CCD,X.tif
", the
 
 451 "-,=
" option would be required to correctly parse
 
 452 this filename with image numbers, as follows:
</p></td> 
 455 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 456        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 457 <tr valign=
"top" align=
"left"> 
 458 <td width=
"17%"></td> 
 460 <pre>tiffcp -c none -,=% -b CCD,X.tif CCD,X%
1%.tif result.tif
 
 465 <a name=
"SEE ALSO"></a> 
 469 <table width=
"100%" border=
0 rules=
"none" frame=
"void" 
 470        cols=
"2" cellspacing=
"0" cellpadding=
"0"> 
 471 <tr valign=
"top" align=
"left"> 
 474 <p><b>pal2rgb
</b>(
1), 
<b>tiffinfo
</b>(
1), 
<b>tiffcmp
</b>(
1),
 
 475 <b>tiffmedian
</b>(
1), 
<b>tiffsplit
</b>(
1),
 
 476 <b>libtiff
</b>(
3TIFF)
</p> 
 478 <p>Libtiff library home page:
 
 479 <b>http://www.remotesensing.org/libtiff/
</b></p>