Blame html/man/tiffcrop.1.html

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
<html>
Packit Service 2594b8
<head>
Packit Service 2594b8
<meta name="generator" content="groff -Thtml, see www.gnu.org">
Packit Service 2594b8
<meta name="Content-Style" content="text/css">
Packit Service 2594b8
<title>TIFFCROP</title>
Packit Service 2594b8
</head>
Packit Service 2594b8
<body>
Packit Service 2594b8
Packit Service 2594b8

TIFFCROP

Packit Service 2594b8
NAME
Packit Service 2594b8
SYNOPSIS
Packit Service 2594b8
DESCRIPTION
Packit Service 2594b8
OPTIONS
Packit Service 2594b8
EXAMPLES
Packit Service 2594b8
SEE ALSO
Packit Service 2594b8
Packit Service 2594b8

Packit Service 2594b8
Packit Service 2594b8

NAME

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

tiffcrop − copy (and possibly convert and crop or

Packit Service 2594b8
process) a <small>TIFF</small> file

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

SYNOPSIS

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

tiffcrop [ options ] src1.tif ...

Packit Service 2594b8
srcN.tif dst.tif

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

DESCRIPTION

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

tiffcrop combines one or more files created

Packit Service 2594b8
according to the Tag Image File Format, Revision 6.0 into a
Packit Service 2594b8
single <small>TIFF</small> file. The output file may be
Packit Service 2594b8
compressed using a different algorithm than the input files.
Packit Service 2594b8
tiffcrop is most often used to extract portions of an
Packit Service 2594b8
image for processing with bar code recognizer or OCR
Packit Service 2594b8
software when that software cannot restrict the region of
Packit Service 2594b8
interest to a specific portion of the image or to improve
Packit Service 2594b8
efficiency when the regions of interest must be rotated.

Packit Service 2594b8
Packit Service 2594b8

By default, tiffcrop will copy all the understood

Packit Service 2594b8
tags in a <small>TIFF</small> directory of an input file to
Packit Service 2594b8
the associated directory in the output file.

Packit Service 2594b8
Packit Service 2594b8

tiffcrop can be used to reorganize the storage

Packit Service 2594b8
characteristics of data in a file, and it will alter or
Packit Service 2594b8
convert the image data content as specified at the same
Packit Service 2594b8
time, unlike tiffcp.

Packit Service 2594b8
Packit Service 2594b8

tiffcrop will behave exactly like tiffcp if none

Packit Service 2594b8
of the new options are specified.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

OPTIONS

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−N odd|even|#,#-#,#|last

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

sequences and ranges of images within file to process.

Packit Service 2594b8
The words odd or even may be used to specify
Packit Service 2594b8
all odd or even numbered images. The word last may be
Packit Service 2594b8
used in place of a number in the sequence to indicate the
Packit Service 2594b8
final image in the file without knowing how many images
Packit Service 2594b8
there are. Ranges of images may be specified with a dash and
Packit Service 2594b8
multiple sets can be indicated by joining them in a
Packit Service 2594b8
comma-separated list. e.g.. use −N 1,5-7,last
Packit Service 2594b8
to process the 1st, 5th through 7th, and final image in the
Packit Service 2594b8
file.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−E top|bottom|left|right

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

use the top, bottom, left, or right edge as origin

Packit Service 2594b8
reference for width and length of crop regions. May be
Packit Service 2594b8
abbreviated to first letter.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−U in|cm|px

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

units to apply to dimensions for margins and crop

Packit Service 2594b8
regions. Inches or centimeters are converted to pixels using
Packit Service 2594b8
the resolution unit specified in the TIFF file (which
Packit Service 2594b8
defaults to inches if not specified in the IFD).

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−m #,#,#,#

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

margins to be removed from the image. The order must be

Packit Service 2594b8
top, left, bottom, right with only commas separating the
Packit Service 2594b8
elements of the list. Margins are scaled according to the
Packit Service 2594b8
current units and removed before any other extractions are
Packit Service 2594b8
computed. Capital M was in use.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="5" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−X #

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

horizontal (X-axis) dimension of a region to extract

Packit Service 2594b8
relative to the specified origin reference. If the origin is
Packit Service 2594b8
the top or bottom edge, the X axis value will be assumed to
Packit Service 2594b8
start at the left edge.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−Y #

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

vertical (Y-axis) dimension of a region to extract

Packit Service 2594b8
relative to the specified origin reference. If the origin is
Packit Service 2594b8
the left or right edge, the Y axis value will be assumed to
Packit Service 2594b8
start at the top.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−Z #:#,#:#

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

zones of the image designated as position X of Y equal

Packit Service 2594b8
sized portions measured from the reference edge, e.g. 1:3
Packit Service 2594b8
would be first third of the image starting from the
Packit Service 2594b8
reference edge minus any margins specified for the confining
Packit Service 2594b8
edges. Multiple zones can be specified as a comma separated
Packit Service 2594b8
list but they must reference the same edge. To extract the
Packit Service 2594b8
top quarter and the bottom third of an image you would use
Packit Service 2594b8
−Z 1:4,3:3.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−F horiz|vert

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

flip, i.e. mirror, the image or extracted region

Packit Service 2594b8
horizontally or vertically.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−R 90|180|270

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

rotate the image or extracted region 90, 180, or 270

Packit Service 2594b8
degrees clockwise.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="5" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−I

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

invert the colorspace values for grayscale and bi-level

Packit Service 2594b8
images. This would be used to correct negative images that
Packit Service 2594b8
have incorrect PHOTOMETRIC INTERPRETATION tags. No support
Packit Service 2594b8
for color images.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−b image

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

subtract the following monochrome image from all others

Packit Service 2594b8
processed. This can be used to remove a noise bias from a
Packit Service 2594b8
set of images. This bias image is typically an image of
Packit Service 2594b8
noise the camera saw with its shutter closed. Bias image
Packit Service 2594b8
support is not available with options for cropping,
Packit Service 2594b8
rotating, or inverting the image.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="5" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−B

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Force output to be written with Big-Endian byte order.

Packit Service 2594b8
This option only has an effect when the output file is
Packit Service 2594b8
created or overwritten and not when it is appended to.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−C

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Suppress the use of ‘‘strip

Packit Service 2594b8
chopping’’ when reading images that have a
Packit Service 2594b8
single strip/tile of uncompressed data.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−c

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Specify the compression to use for data written to the

Packit Service 2594b8
output file: none for no compression, packbits
Packit Service 2594b8
for PackBits compression, lzw for Lempel-Ziv &
Packit Service 2594b8
Welch compression, jpeg for baseline JPEG
Packit Service 2594b8
compression, zip for Deflate compression, g3
Packit Service 2594b8
for CCITT Group 3 (T.4) compression, and g4 for CCITT
Packit Service 2594b8
Group 4 (T.6) compression. By default tiffcrop will
Packit Service 2594b8
compress data according to the value of the
Packit Service 2594b8
Compression tag found in the source file.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

The <small>CCITT</small> Group 3 and Group 4 compression

Packit Service 2594b8
algorithms can only be used with bi-level data.

Packit Service 2594b8
Packit Service 2594b8

Group 3 compression can be specified together with

Packit Service 2594b8
several T.4-specific options: 1d for 1-dimensional
Packit Service 2594b8
encoding, 2d for 2-dimensional encoding, and
Packit Service 2594b8
fill to force each encoded scanline to be zero-filled
Packit Service 2594b8
so that the terminating EOL code lies on a byte boundary.
Packit Service 2594b8
Group 3-specific options are specified by appending a
Packit Service 2594b8
‘‘:’’-separated list to the
Packit Service 2594b8
‘‘g3’’ option; e.g. −c
Packit Service 2594b8
g3:2d:fill to get 2D-encoded data with byte-aligned EOL
Packit Service 2594b8
codes.

Packit Service 2594b8
Packit Service 2594b8

<small>LZW</small> compression can be specified together

Packit Service 2594b8
with a predictor value. A predictor value of 2 causes
Packit Service 2594b8
each scanline of the output image to undergo horizontal
Packit Service 2594b8
differencing before it is encoded; a value of 1 forces each
Packit Service 2594b8
scanline to be encoded without differencing. LZW-specific
Packit Service 2594b8
options are specified by appending a
Packit Service 2594b8
‘‘:’’-separated list to the
Packit Service 2594b8
‘‘lzw’’ option; e.g. −c
Packit Service 2594b8
lzw:2 for <small>LZW</small> compression with horizontal
Packit Service 2594b8
differencing.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="5" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−f

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Specify the bit fill order to use in writing output

Packit Service 2594b8
data. By default, tiffcrop will create a new file
Packit Service 2594b8
with the same fill order as the original. Specifying
Packit Service 2594b8
−f lsb2msb will force data to be written with
Packit Service 2594b8
the FillOrder tag set to <small>LSB2MSB,</small> while
Packit Service 2594b8
−f msb2lsb will force data to be written with
Packit Service 2594b8
the FillOrder tag set to <small>MSB2LSB.</small>

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−i

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Ignore non-fatal read errors and continue processing of

Packit Service 2594b8
the input file.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−l

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Specify the length of a tile (in pixels).

Packit Service 2594b8
tiffcrop attempts to set the tile dimensions so that
Packit Service 2594b8
no more than 8 kilobytes of data appear in a tile.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−L

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Force output to be written with Little-Endian byte

Packit Service 2594b8
order. This option only has an effect when the output file
Packit Service 2594b8
is created or overwritten and not when it is appended
Packit Service 2594b8
to.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−M

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Suppress the use of memory-mapped files when reading

Packit Service 2594b8
images.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−p

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Specify the planar configuration to use in writing image

Packit Service 2594b8
data that has one 8-bit sample per pixel. By default,
Packit Service 2594b8
tiffcrop will create a new file with the same planar
Packit Service 2594b8
configuration as the original. Specifying −p
Packit Service 2594b8
contig will force data to be written with multi-sample
Packit Service 2594b8
data packed together, while −p separate will
Packit Service 2594b8
force samples to be written in separate planes.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−r

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Specify the number of rows (scanlines) in each strip of

Packit Service 2594b8
data written to the output file. By default (or when value
Packit Service 2594b8
0 is specified), tiffcrop attempts to set the
Packit Service 2594b8
rows/strip that no more than 8 kilobytes of data appear in a
Packit Service 2594b8
strip. If you specify special value -1 it will
Packit Service 2594b8
results in infinite number of the rows per strip. The entire
Packit Service 2594b8
image will be the one strip in that case.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−s

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Force the output file to be written with data organized

Packit Service 2594b8
in strips (rather than tiles).

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−t

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Force the output file to be written with data organized

Packit Service 2594b8
in tiles (rather than strips). options can be used to force
Packit Service 2594b8
the resultant image to be written as strips or tiles of
Packit Service 2594b8
data, respectively.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−w

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Specify the width of a tile (in pixels). tiffcrop

Packit Service 2594b8
attempts to set the tile dimensions so that no more than 8
Packit Service 2594b8
kilobytes of data appear in a tile. tiffcrop attempts
Packit Service 2594b8
to set the tile dimensions so that no more than 8 kilobytes
Packit Service 2594b8
of data appear in a tile.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

−,={character}

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

substitute {character} for ’,’ in parsing

Packit Service 2594b8
image directory indices in files. This is necessary if
Packit Service 2594b8
filenames contain commas. Note that ’,=’ with
Packit Service 2594b8
whitespace immediately following will disable the special
Packit Service 2594b8
meaning of the ’,’ entirely. See examples.

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

EXAMPLES

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

The following concatenates two files and writes the

Packit Service 2594b8
result using <small>LZW</small> encoding:

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
tiffcrop -c lzw a.tif b.tif result.tif
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

To convert a G3 1d-encoded <small>TIFF</small> to a

Packit Service 2594b8
single strip of G4-encoded data the following might be
Packit Service 2594b8
used:

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
tiffcrop -c g4 -r 10000 g3.tif g4.tif
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

(1000 is just a number that is larger than the number of

Packit Service 2594b8
rows in the source file.)

Packit Service 2594b8
Packit Service 2594b8

To extract a selected set of images from a multi-image

Packit Service 2594b8
TIFF file use the -N option described above. Thus, to copy
Packit Service 2594b8
the 1st and 3rd images of image file "album.tif"
Packit Service 2594b8
to "result.tif":

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
tiffcrop -N 1,3 album.tif result.tif
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Given file "CCD.tif" whose first image is a

Packit Service 2594b8
noise bias followed by images which include that bias,
Packit Service 2594b8
subtract the noise from all those images following it (while
Packit Service 2594b8
decompressing) with the command:

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
tiffcrop -c none -b CCD.tif CCD.tif -d 2 result.tif
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

SEE ALSO

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
       cols="2" cellspacing="0" cellpadding="0">
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

pal2rgb(1), tiffinfo(1), tiffcmp(1),

Packit Service 2594b8
tiffcp(1), tiffmedian(1), tiffsplit(1),
Packit Service 2594b8
libtiff(3TIFF)

Packit Service 2594b8
Packit Service 2594b8

Libtiff library home page:

Packit Service 2594b8
http://www.simplesystems.org/libtiff/

Packit Service 2594b8
Packit Service 2594b8
Packit Service 2594b8

Packit Service 2594b8
</body>
Packit Service 2594b8
</html>