|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<meta content="groff -Thtml, see www.gnu.org" name="generator">
|
|
kusano |
7d535a |
<meta content="text/css" name="Content-Style">
|
|
kusano |
7d535a |
<title>TIFFCROP</title>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
TIFFCROP
|
|
kusano |
7d535a |
NAME
|
|
kusano |
7d535a |
SYNOPSIS
|
|
kusano |
7d535a |
DESCRIPTION
|
|
kusano |
7d535a |
OPTIONS
|
|
kusano |
7d535a |
EXAMPLES
|
|
kusano |
7d535a |
SEE ALSO
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
NAME
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop − copy (and possibly convert and crop or
|
|
kusano |
7d535a |
process) a <small>TIFF</small> file
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SYNOPSIS
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop [ options ] src1.tif ...
|
|
kusano |
7d535a |
srcN.tif dst.tif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
DESCRIPTION
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop combines one or more files created
|
|
kusano |
7d535a |
according to the Tag Image File Format, Revision 6.0 into a
|
|
kusano |
7d535a |
single <small>TIFF</small> file. The output file may be
|
|
kusano |
7d535a |
compressed using a different algorithm than the input files.
|
|
kusano |
7d535a |
tiffcrop is most often used to extract portions of an
|
|
kusano |
7d535a |
image for processing with bar code recognizer or OCR
|
|
kusano |
7d535a |
software when that software cannot restrict the region of
|
|
kusano |
7d535a |
interest to a specific portion of the image or to improve
|
|
kusano |
7d535a |
efficiency when the regions of interest must be rotated.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
By default, tiffcrop will copy all the understood
|
|
kusano |
7d535a |
tags in a <small>TIFF</small> directory of an input file to
|
|
kusano |
7d535a |
the associated directory in the output file.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop can be used to reorganize the storage
|
|
kusano |
7d535a |
characteristics of data in a file, and it will alter or
|
|
kusano |
7d535a |
convert the image data content as specified at the same
|
|
kusano |
7d535a |
time, unlike tiffcp.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop will behave exactly like tiffcp if none
|
|
kusano |
7d535a |
of the new options are specified.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
OPTIONS
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−N odd|even|#,#-#,#|last
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
sequences and ranges of images within file to process.
|
|
kusano |
7d535a |
The words odd or even may be used to specify
|
|
kusano |
7d535a |
all odd or even numbered images. The word last may be
|
|
kusano |
7d535a |
used in place of a number in the sequence to indicate the
|
|
kusano |
7d535a |
final image in the file without knowing how many images
|
|
kusano |
7d535a |
there are. Ranges of images may be specified with a dash and
|
|
kusano |
7d535a |
multiple sets can be indicated by joining them in a
|
|
kusano |
7d535a |
comma-separated list. e.g.. use −N 1,5-7,last
|
|
kusano |
7d535a |
to process the 1st, 5th through 7th, and final image in the
|
|
kusano |
7d535a |
file.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−E top|bottom|left|right
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
use the top, bottom, left, or right edge as origin
|
|
kusano |
7d535a |
reference for width and length of crop regions. May be
|
|
kusano |
7d535a |
abbreviated to first letter.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−U in|cm|px
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
units to apply to dimensions for margins and crop
|
|
kusano |
7d535a |
regions. Inches or centimeters are converted to pixels using
|
|
kusano |
7d535a |
the resolution unit specified in the TIFF file (which
|
|
kusano |
7d535a |
defaults to inches if not specified in the IFD).
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−m #,#,#,#
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
margins to be removed from the image. The order must be
|
|
kusano |
7d535a |
top, left, bottom, right with only commas separating the
|
|
kusano |
7d535a |
elements of the list. Margins are scaled according to the
|
|
kusano |
7d535a |
current units and removed before any other extractions are
|
|
kusano |
7d535a |
computed. Capital M was in use.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="5" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−X #
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
horizontal (X-axis) dimension of a region to extract
|
|
kusano |
7d535a |
relative to the specified origin reference. If the origin is
|
|
kusano |
7d535a |
the top or bottom edge, the X axis value will be assumed to
|
|
kusano |
7d535a |
start at the left edge.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−Y #
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
vertical (Y-axis) dimension of a region to extract
|
|
kusano |
7d535a |
relative to the specified origin reference. If the origin is
|
|
kusano |
7d535a |
the left or right edge, the Y axis value will be assumed to
|
|
kusano |
7d535a |
start at the top.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−Z #:#,#:#
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
zones of the image designated as position X of Y equal
|
|
kusano |
7d535a |
sized portions measured from the reference edge, e.g. 1:3
|
|
kusano |
7d535a |
would be first third of the image starting from the
|
|
kusano |
7d535a |
reference edge minus any margins specified for the confining
|
|
kusano |
7d535a |
edges. Multiple zones can be specified as a comma separated
|
|
kusano |
7d535a |
list but they must reference the same edge. To extract the
|
|
kusano |
7d535a |
top quarter and the bottom third of an image you would use
|
|
kusano |
7d535a |
−Z 1:4,3:3.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−F horiz|vert
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
flip, i.e. mirror, the image or extracted region
|
|
kusano |
7d535a |
horizontally or vertically.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−R 90|180|270
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
rotate the image or extracted region 90, 180, or 270
|
|
kusano |
7d535a |
degrees clockwise.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="5" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−I
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
invert the colorspace values for grayscale and bi-level
|
|
kusano |
7d535a |
images. This would be used to correct negative images that
|
|
kusano |
7d535a |
have incorrect PHOTOMETRIC INTERPRETATION tags. No support
|
|
kusano |
7d535a |
for color images.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−b image
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
subtract the following monochrome image from all others
|
|
kusano |
7d535a |
processed. This can be used to remove a noise bias from a
|
|
kusano |
7d535a |
set of images. This bias image is typically an image of
|
|
kusano |
7d535a |
noise the camera saw with its shutter closed. Bias image
|
|
kusano |
7d535a |
support is not available with options for cropping,
|
|
kusano |
7d535a |
rotating, or inverting the image.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="5" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−B
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Force output to be written with Big-Endian byte order.
|
|
kusano |
7d535a |
This option only has an effect when the output file is
|
|
kusano |
7d535a |
created or overwritten and not when it is appended to.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−C
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Suppress the use of ‘‘strip
|
|
kusano |
7d535a |
chopping’’ when reading images that have a
|
|
kusano |
7d535a |
single strip/tile of uncompressed data.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−c
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Specify the compression to use for data written to the
|
|
kusano |
7d535a |
output file: none for no compression, packbits
|
|
kusano |
7d535a |
for PackBits compression, lzw for Lempel-Ziv &
|
|
kusano |
7d535a |
Welch compression, jpeg for baseline JPEG
|
|
kusano |
7d535a |
compression, zip for Deflate compression, g3
|
|
kusano |
7d535a |
for CCITT Group 3 (T.4) compression, and g4 for CCITT
|
|
kusano |
7d535a |
Group 4 (T.6) compression. By default tiffcrop will
|
|
kusano |
7d535a |
compress data according to the value of the
|
|
kusano |
7d535a |
Compression tag found in the source file.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
The <small>CCITT</small> Group 3 and Group 4 compression
|
|
kusano |
7d535a |
algorithms can only be used with bi-level data.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Group 3 compression can be specified together with
|
|
kusano |
7d535a |
several T.4-specific options: 1d for 1-dimensional
|
|
kusano |
7d535a |
encoding, 2d for 2-dimensional encoding, and
|
|
kusano |
7d535a |
fill to force each encoded scanline to be zero-filled
|
|
kusano |
7d535a |
so that the terminating EOL code lies on a byte boundary.
|
|
kusano |
7d535a |
Group 3-specific options are specified by appending a
|
|
kusano |
7d535a |
‘‘:’’-separated list to the
|
|
kusano |
7d535a |
‘‘g3’’ option; e.g. −c
|
|
kusano |
7d535a |
g3:2d:fill to get 2D-encoded data with byte-aligned EOL
|
|
kusano |
7d535a |
codes.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
<small>LZW</small> compression can be specified together
|
|
kusano |
7d535a |
with a predictor value. A predictor value of 2 causes
|
|
kusano |
7d535a |
each scanline of the output image to undergo horizontal
|
|
kusano |
7d535a |
differencing before it is encoded; a value of 1 forces each
|
|
kusano |
7d535a |
scanline to be encoded without differencing. LZW-specific
|
|
kusano |
7d535a |
options are specified by appending a
|
|
kusano |
7d535a |
‘‘:’’-separated list to the
|
|
kusano |
7d535a |
‘‘lzw’’ option; e.g. −c
|
|
kusano |
7d535a |
lzw:2 for <small>LZW</small> compression with horizontal
|
|
kusano |
7d535a |
differencing.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="5" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−f
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Specify the bit fill order to use in writing output
|
|
kusano |
7d535a |
data. By default, tiffcrop will create a new file
|
|
kusano |
7d535a |
with the same fill order as the original. Specifying
|
|
kusano |
7d535a |
−f lsb2msb will force data to be written with
|
|
kusano |
7d535a |
the FillOrder tag set to <small>LSB2MSB,</small> while
|
|
kusano |
7d535a |
−f msb2lsb will force data to be written with
|
|
kusano |
7d535a |
the FillOrder tag set to <small>MSB2LSB.</small>
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−i
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Ignore non-fatal read errors and continue processing of
|
|
kusano |
7d535a |
the input file.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−l
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Specify the length of a tile (in pixels).
|
|
kusano |
7d535a |
tiffcrop attempts to set the tile dimensions so that
|
|
kusano |
7d535a |
no more than 8 kilobytes of data appear in a tile.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−L
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Force output to be written with Little-Endian byte
|
|
kusano |
7d535a |
order. This option only has an effect when the output file
|
|
kusano |
7d535a |
is created or overwritten and not when it is appended
|
|
kusano |
7d535a |
to.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−M
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Suppress the use of memory-mapped files when reading
|
|
kusano |
7d535a |
images.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−p
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Specify the planar configuration to use in writing image
|
|
kusano |
7d535a |
data that has one 8-bit sample per pixel. By default,
|
|
kusano |
7d535a |
tiffcrop will create a new file with the same planar
|
|
kusano |
7d535a |
configuration as the original. Specifying −p
|
|
kusano |
7d535a |
contig will force data to be written with multi-sample
|
|
kusano |
7d535a |
data packed together, while −p separate will
|
|
kusano |
7d535a |
force samples to be written in separate planes.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−r
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Specify the number of rows (scanlines) in each strip of
|
|
kusano |
7d535a |
data written to the output file. By default (or when value
|
|
kusano |
7d535a |
0 is specified), tiffcrop attempts to set the
|
|
kusano |
7d535a |
rows/strip that no more than 8 kilobytes of data appear in a
|
|
kusano |
7d535a |
strip. If you specify special value -1 it will
|
|
kusano |
7d535a |
results in infinite number of the rows per strip. The entire
|
|
kusano |
7d535a |
image will be the one strip in that case.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−s
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Force the output file to be written with data organized
|
|
kusano |
7d535a |
in strips (rather than tiles).
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−t
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Force the output file to be written with data organized
|
|
kusano |
7d535a |
in tiles (rather than strips). options can be used to force
|
|
kusano |
7d535a |
the resultant image to be written as strips or tiles of
|
|
kusano |
7d535a |
data, respectively.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−w
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Specify the width of a tile (in pixels). tiffcrop
|
|
kusano |
7d535a |
attempts to set the tile dimensions so that no more than 8
|
|
kusano |
7d535a |
kilobytes of data appear in a tile. tiffcrop attempts
|
|
kusano |
7d535a |
to set the tile dimensions so that no more than 8 kilobytes
|
|
kusano |
7d535a |
of data appear in a tile.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
−,={character}
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
substitute {character} for ’,’ in parsing
|
|
kusano |
7d535a |
image directory indices in files. This is necessary if
|
|
kusano |
7d535a |
filenames contain commas. Note that ’,=’ with
|
|
kusano |
7d535a |
whitespace immediately following will disable the special
|
|
kusano |
7d535a |
meaning of the ’,’ entirely. See examples.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
EXAMPLES
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
The following concatenates two files and writes the
|
|
kusano |
7d535a |
result using <small>LZW</small> encoding:
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop -c lzw a.tif b.tif result.tif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
To convert a G3 1d-encoded <small>TIFF</small> to a
|
|
kusano |
7d535a |
single strip of G4-encoded data the following might be
|
|
kusano |
7d535a |
used:
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop -c g4 -r 10000 g3.tif g4.tif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
(1000 is just a number that is larger than the number of
|
|
kusano |
7d535a |
rows in the source file.)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
To extract a selected set of images from a multi-image
|
|
kusano |
7d535a |
TIFF file use the -N option described above. Thus, to copy
|
|
kusano |
7d535a |
the 1st and 3rd images of image file "album.tif"
|
|
kusano |
7d535a |
to "result.tif":
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop -N 1,3 album.tif result.tif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Given file "CCD.tif" whose first image is a
|
|
kusano |
7d535a |
noise bias followed by images which include that bias,
|
|
kusano |
7d535a |
subtract the noise from all those images following it (while
|
|
kusano |
7d535a |
decompressing) with the command:
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
tiffcrop -c none -b CCD.tif CCD.tif -d 2 result.tif
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
SEE ALSO
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
cols="2" cellspacing="0" cellpadding="0">
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
pal2rgb(1), tiffinfo(1), tiffcmp(1),
|
|
kusano |
7d535a |
tiffcp(1), tiffmedian(1), tiffsplit(1),
|
|
kusano |
7d535a |
libtiff(3TIFF)
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
Libtiff library home page:
|
|
kusano |
7d535a |
http://www.remotesensing.org/libtiff/
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
|