tiffcrop -version (return code: 0)
Library Release: LIBTIFF, Version 4.0.8
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc..
Tiffcrop version: 2.4, last updated: 12-13-2010.
Tiffcp code: Copyright (c) 1988-1997 Sam Leffler.
: Copyright (c) 1991-1997 Silicon Graphics, Inc.
Tiffcrop additions: Copyright (c) 2007-2010 Richard Nolde.
tiffcrop -HELP (return code: 255)
LIBTIFF, Version 4.0.8
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.
usage: tiffcrop [options] source1 ... sourceN destination
where options are:
-h Print this syntax listing
-v Print tiffcrop version identifier and last revision date
-a Append to output instead of overwriting
-d offset Set initial directory offset, counting first image as one, not zero
-p contig Pack samples contiguously (e.g. RGBRGB...)
-p separate Store samples separately (e.g. RRR...GGG...BBB...)
-s Write output in strips
-t Write output in tiles
-i Ignore read errors
-r # Make each strip have no more than # rows
-w # Set output tile width (pixels)
-l # Set output tile length (pixels)
-f lsb2msb Force lsb-to-msb FillOrder for output
-f msb2lsb Force msb-to-lsb FillOrder for output
-c lzw[:opts] Compress output with Lempel-Ziv & Welch encoding
-c zip[:opts] Compress output with deflate encoding
-c jpeg[:opts] Compress output with JPEG encoding
-c packbits Compress output with packbits encoding
-c g3[:opts] Compress output with CCITT Group 3 encoding
-c g4 Compress output with CCITT Group 4 encoding
-c none Use no compression algorithm on output
Group 3 options:
1d Use default CCITT Group 3 1D-encoding
2d Use optional CCITT Group 3 2D-encoding
fill Byte-align EOL codes
For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs
JPEG options:
# Set compression quality level (0-100, default 100)
raw Output color image as raw YCbCr
rgb Output color image as RGB
For example, -c jpeg:rgb:50 to get JPEG-encoded RGB data with 50% comp. quality
LZW and deflate options:
# Set predictor value
For example, -c lzw:2 to get LZW-encoded data with horizontal differencing
Page and selection options:
-N odd|even|#,#-#,#|last sequences and ranges of images within file to process
The words odd or even may be used to specify all odd or even numbered images.
The word last may be used in place of a number in the sequence to indicate.
The final image in the file without knowing how many images there are.
Numbers are counted from one even though TIFF IFDs are counted from zero.
-E t|l|r|b edge to use as origin for width and length of crop region
-U units [in, cm, px ] inches, centimeters or pixels
-m #,#,#,# margins from edges for selection: top, left, bottom, right separated by commas
-X # horizontal dimension of region to extract expressed in current units
-Y # vertical dimension of region to extract expressed in current units
-Z #:#,#:# zones of the image designated as position X of Y,
eg 1:3 would be first of three equal portions measured from reference edge
-z x1,y1,x2,y2:...:xN,yN,xN+1,yN+1
regions of the image designated by upper left and lower right coordinates
Export grouping options:
-e c|d|i|m|s export mode for images and selections from input images.
When exporting a composite image from multiple zones or regions
(combined and image modes), the selections must have equal sizes
for the axis perpendicular to the edge specified with -E.
c|combined All images and selections are written to a single file (default).
with multiple selections from one image combined into a single image.
d|divided All images and selections are written to a single file
with each selection from one image written to a new image.
i|image Each input image is written to a new file (numeric filename sequence)
with multiple selections from the image combined into one image.
m|multiple Each input image is written to a new file (numeric filename sequence)
with each selection from the image written to a new image.
s|separated Individual selections from each image are written to separate files.
Output options:
-H # Set horizontal resolution of output images to #
-V # Set vertical resolution of output images to #
-J # Set horizontal margin of output page to # expressed in current units
when sectioning image into columns x rows using the -S cols:rows option
-K # Set verticalal margin of output page to # expressed in current units
when sectioning image into columns x rows using the -S cols:rows option
-O orient orientation for output image, portrait, landscape, auto
-P page page size for output image segments, eg letter, legal, tabloid, etc
use #.#x#.# to specify a custom page size in the currently defined units
where #.# represents the width and length
-S cols:rows Divide the image into equal sized segments using cols across and rows down.
-F hor|vert|both
flip (mirror) image or region horizontally, vertically, or both
-R # [90,180,or 270] degrees clockwise rotation of image or extracted region
-I [black|white|data|both]
invert color space, eg dark to light for bilevel and grayscale images
If argument is white or black, set the PHOTOMETRIC_INTERPRETATION
tag to MinIsBlack or MinIsWhite without altering the image data
If the argument is data or both, the image data are modified:
both inverts the data and the PHOTOMETRIC_INTERPRETATION tag,
data inverts the data but not the PHOTOMETRIC_INTERPRETATION tag
-D opt1:value1,opt2:value2,opt3:value3:opt4:value4
Debug/dump program progress and/or data to non-TIFF files.
Options include the following and must be joined as a comma
separate list. The use of this option is generally limited to
program debugging and development of future options.
debug:N Display limited program progress indicators where larger N
increase the level of detail. Note: Tiffcrop may be compiled with
-DDEVELMODE to enable additional very low level debug reporting.
Format:txt|raw Format any logged data as ASCII text or raw binary
values. ASCII text dumps include strings of ones and zeroes
representing the binary values in the image data plus identifying headers.
level:N Specify the level of detail presented in the dump files.
This can vary from dumps of the entire input or output image data to dumps
of data processed by specific functions. Current range of levels is 1 to 3.
input:full-path-to-directory/input-dumpname
output:full-path-to-directory/output-dumpnaem
When dump files are being written, each image will be written to a separate
file with the name built by adding a numeric sequence value to the dumpname
and an extension of .txt for ASCII dumps or .bin for binary dumps.
The four debug/dump options are independent, though it makes little sense to
specify a dump file without specifying a detail level.