SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Fedora 11 libtiff-3.8.2-15.fc11.x86_64.rpm

TIFFCP

Section: User Commands (1)
Updated: September 20, 2005
Index 

NAME

tiffcp - copy (and possibly convert) aTIFFfile 

SYNOPSIS

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

DESCRIPTION

tiffcpcombines one or more files created accordingto the Tag Image File Format, Revision 6.0into a singleTIFFfile.Because the output file may be compressed using a differentalgorithm than the input files,tiffcpis most often used to convert between different compressionschemes.

By default, tiffcpwill copy all the understood tags in aTIFFdirectory of an inputfile to the associated directory in the output file.

tiffcpcan be used to reorganize the storage characteristics of datain a file, but it is explicitly intended to not alter or convertthe image data content in any way. 

OPTIONS

-b image
subtract the following monochrome image from all othersprocessed. This can be used to remove a noise biasfrom a set of images. This bias image is typically animage of noise the camera saw with its shutter closed.
-B
Force output to be written with Big-Endian byte order.This option only has an effect when the output file is created oroverwritten and not when it is appended to.
-C
Suppress the use of ``strip chopping'' when reading imagesthat have a single strip/tile of uncompressed data.
-c
Specify the compression to use for data written to the output file:none for no compression,packbitsfor PackBits compression,lzwfor Lempel-Ziv & Welch compression,jpegfor baseline JPEG compression,zipfor Deflate compression,g3for CCITT Group 3 (T.4) compression,andg4for CCITT Group 4 (T.6) compression.By defaulttiffcpwill compress data according to the value of theCompressiontag found in the source file.
TheCCITTGroup 3 and Group 4 compression algorithms can onlybe used with bilevel data.
Group 3 compression can be specified together with severalT.4-specific options:1dfor 1-dimensional encoding,2dfor 2-dimensional encoding,andfillto force each encoded scanline to be zero-filled so that theterminating EOL code lies on a byte boundary.Group 3-specific options are specified by appending a ``:''-separatedlist to the ``g3'' option; e.g.-c g3:2d:fillto get 2D-encoded data with byte-aligned EOL codes.
LZWcompression can be specified together with a predictorvalue.A predictor value of 2 causeseach scanline of the output image to undergo horizontaldifferencing before it is encoded; a valueof 1 forces each scanline to be encoded without differencing.LZW-specific options are specified by appending a ``:''-separatedlist to the ``lzw'' option; e.g.-c lzw:2forLZWcompression with horizontal differencing.
-f
Specify the bit fill order to use in writing output data.By default,tiffcpwill create a new file with the same fill order as the original.Specifying-f lsb2msbwill force data to be written with the FillOrder tag set toLSB2MSB,while-f msb2lsbwill force data to be written with the FillOrder tag set toMSB2LSB.
-l
Specify the length of a tile (in pixels).tiffcpattempts to set the tile dimensions sothat no more than 8 kilobytes of data appear in a tile.
-L
Force output to be written with Little-Endian byte order.This option only has an effect when the output file is created oroverwritten and not when it is appended to.
-M
Suppress the use of memory-mapped files when reading images.
-p
Specify the planar configuration to use in writing image datathat has one 8-bit sample per pixel.By default,tiffcpwill create a new file with the same planar configuration asthe original.Specifying-p contigwill force data to be written with multi-sample data packedtogether, while-p separatewill force samples to be written in separate planes.
-r
Specify the number of rows (scanlines) in each strip of datawritten to the output file.By default (or when value0is specified),tiffcpattempts to set the rows/stripthat no more than 8 kilobytes of data appear in a strip. If you specifyspecial value-1it will results in infinite number of the rows per strip. The entire imagewill be the one strip in that case.
-s
Force the output file to be written with data organized in strips(rather than tiles).
-t
Force the output file to be written with data organized in tiles(rather than strips).options can be used to force the resultant image to be writtenas strips or tiles of data, respectively.
-w
Specify the width of a tile (in pixels).tiffcpattempts to set the tile dimensions sothat no more than 8 kilobytes of data appear in a tile.tiffcpattempts to set the tile dimensions sothat no more than 8 kilobytes of data appear in a tile.
-,={character}
substitute {character} for ',' in parsing image directory indicesin files. This is necessary if filenames contain commas.Note that ',=' with whitespace immediately following will disablethe special meaning of the ',' entirely. See examples.
 

EXAMPLES

The following concatenates two files and writes the result using LZWencoding:
tiffcp -c lzw a.tif b.tif result.tif

To convert a G3 1d-encoded TIFFto a single strip of G4-encoded data the following might be used:

tiffcp -c g4 -r 10000 g3.tif g4.tif
(1000 is just a number that is larger than the number of rows inthe source file.)

To extract a selected set of images from a multi-imageTIFF file, the file name may be immediately followed by a ',' separated list of image directory indices. The first imageis always in directory 0. Thus, to copy the 1st and 3rdimages of image file "album.tif" to "result.tif":

tiffcp album.tif,0,2 result.tif

Given file "CCD.tif" whose first image is a noise biasfollowed by images which include that bias,subtract the noise from all those images following it(while decompressing) with the command:

tiffcp -c none -b CCD.tif CCD.tif,1, result.tif

If the file above were named "CCD,X.tif", the "-,=" option wouldbe required to correctly parse this filename with image numbers,as follows:

tiffcp -c none -,=% -b CCD,X.tif CCD,X%1%.tif result.tif
 

SEE ALSO

pal2rgb(1),tiffinfo(1),tiffcmp(1),tiffmedian(1),tiffsplit(1),libtiff(3TIFF)

Libtiff library home page:http://www.remotesensing.org/libtiff/


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO

This document was created byman2html,using the manual pages.