|
roentgen |
b75cab |
.\" $Id: tiffgt.1,v 1.4 2006-04-20 12:17:19 dron Exp $
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" Copyright (c) 1988-1997 Sam Leffler
|
|
roentgen |
b75cab |
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" Permission to use, copy, modify, distribute, and sell this software and
|
|
roentgen |
b75cab |
.\" its documentation for any purpose is hereby granted without fee, provided
|
|
roentgen |
b75cab |
.\" that (i) the above copyright notices and this permission notice appear in
|
|
roentgen |
b75cab |
.\" all copies of the software and related documentation, and (ii) the names of
|
|
roentgen |
b75cab |
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
roentgen |
b75cab |
.\" publicity relating to the software without the specific, prior written
|
|
roentgen |
b75cab |
.\" permission of Sam Leffler and Silicon Graphics.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
roentgen |
b75cab |
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
roentgen |
b75cab |
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
roentgen |
b75cab |
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
roentgen |
b75cab |
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
roentgen |
b75cab |
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
roentgen |
b75cab |
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
roentgen |
b75cab |
.\" OF THIS SOFTWARE.
|
|
roentgen |
b75cab |
.\"
|
|
roentgen |
b75cab |
.if n .po 0
|
|
roentgen |
b75cab |
.TH TIFFGT 1 "September 20, 2005" "libtiff"
|
|
roentgen |
b75cab |
.SH NAME
|
|
roentgen |
b75cab |
tiffgt \- display an image stored in a
|
|
roentgen |
b75cab |
.SM TIFF
|
|
roentgen |
b75cab |
file (Silicon Graphics version)
|
|
roentgen |
b75cab |
.SH SYNOPSIS
|
|
roentgen |
b75cab |
.B tiffgt
|
|
roentgen |
b75cab |
[
|
|
roentgen |
b75cab |
.I options
|
|
roentgen |
b75cab |
]
|
|
roentgen |
b75cab |
.I "input.tif ..."
|
|
roentgen |
b75cab |
.SH DESCRIPTION
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
displays one or more images stored using the
|
|
roentgen |
b75cab |
Tag Image File Format, Revision 6.0.
|
|
roentgen |
b75cab |
Each image is placed in a fixed size window that the
|
|
roentgen |
b75cab |
user must position on the display (unless configured
|
|
roentgen |
b75cab |
otherwise through X defaults).
|
|
roentgen |
b75cab |
If the display has fewer than 24 bitplanes, or if the
|
|
roentgen |
b75cab |
image does not warrant full color, then
|
|
roentgen |
b75cab |
.SM RGB
|
|
roentgen |
b75cab |
color values are mapped to the closest values that exist in
|
|
roentgen |
b75cab |
the colormap (this is done using the
|
|
roentgen |
b75cab |
.I rgbi
|
|
roentgen |
b75cab |
routine found in the graphics utility library
|
|
roentgen |
b75cab |
.BR \-lgutil .)
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
correctly handles files with any of the following characteristics:
|
|
roentgen |
b75cab |
.sp .5
|
|
roentgen |
b75cab |
.in +0.5i
|
|
roentgen |
b75cab |
.ta \w'\fIPhotometricInterpretation\fP 'u
|
|
roentgen |
b75cab |
.nf
|
|
roentgen |
b75cab |
\fIBitsPerSample\fP 1, 2, 4, 8, 16
|
|
roentgen |
b75cab |
\fISamplesPerPixel\fP 1, 3, 4 (the 4th sample is ignored)
|
|
roentgen |
b75cab |
\fIPhotometricInterpretation\fP 0 (min-is-white), 1 (min-is-black), 2 (RGB), 3 (palette), 6 (YCbCr)
|
|
roentgen |
b75cab |
\fIPlanarConfiguration\fP 1 (contiguous), 2 (separate)
|
|
roentgen |
b75cab |
\fIOrientation\fP 1 (top-left), 4 (bottom-left)
|
|
roentgen |
b75cab |
.fi
|
|
roentgen |
b75cab |
.in -0.5i
|
|
roentgen |
b75cab |
.sp .5
|
|
roentgen |
b75cab |
Data may be organized as strips or tiles and may be
|
|
roentgen |
b75cab |
compressed with any of the compression algorithms supported
|
|
roentgen |
b75cab |
by the
|
|
roentgen |
b75cab |
.IR libtiff (3)
|
|
roentgen |
b75cab |
library.
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
For palette images (\c
|
|
roentgen |
b75cab |
.IR PhotometricInterpretation =3),
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
inspects the colormap values and assumes either 16-bit
|
|
roentgen |
b75cab |
or 8-bit values according to the maximum value.
|
|
roentgen |
b75cab |
That is, if no colormap entry greater than 255 is found,
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
assumes the colormap has only 8-bit values; otherwise
|
|
roentgen |
b75cab |
it assumes 16-bit values.
|
|
roentgen |
b75cab |
This inspection is done to handle old images written by
|
|
roentgen |
b75cab |
previous (incorrect) versions of
|
|
roentgen |
b75cab |
.IR libtiff .
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
can be used to display multiple images one-at-a-time.
|
|
roentgen |
b75cab |
The left mouse button switches the display to the first image in the
|
|
roentgen |
b75cab |
.I next
|
|
roentgen |
b75cab |
file in the list of files specified on the command line.
|
|
roentgen |
b75cab |
The right mouse button switches to the first image in the
|
|
roentgen |
b75cab |
.I previous
|
|
roentgen |
b75cab |
file in the list.
|
|
roentgen |
b75cab |
The middle mouse button causes the first image in the first file
|
|
roentgen |
b75cab |
specified on the command line to be displayed.
|
|
roentgen |
b75cab |
In addition the following keyboard commands are recognized:
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B b
|
|
roentgen |
b75cab |
Use a
|
|
roentgen |
b75cab |
.I PhotometricInterpretation
|
|
roentgen |
b75cab |
of MinIsBlack in displaying the current image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B l
|
|
roentgen |
b75cab |
Use a
|
|
roentgen |
b75cab |
.I FillOrder
|
|
roentgen |
b75cab |
of lsb-to-msb in decoding the current image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B m
|
|
roentgen |
b75cab |
Use a
|
|
roentgen |
b75cab |
.I FillOrder
|
|
roentgen |
b75cab |
of msb-to-lsb in decoding the current image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B c
|
|
roentgen |
b75cab |
Use a colormap visual to display the current image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B r
|
|
roentgen |
b75cab |
Use a true color (24-bit RGB) visual to display the current image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B w
|
|
roentgen |
b75cab |
Use a
|
|
roentgen |
b75cab |
.I PhotometricInterpretation
|
|
roentgen |
b75cab |
of MinIsWhite in displaying the current image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B W
|
|
roentgen |
b75cab |
Toggle (enable/disable) display of warning messages from the
|
|
roentgen |
b75cab |
.SM TIFF
|
|
roentgen |
b75cab |
library when decoding images.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B E
|
|
roentgen |
b75cab |
Toggle (enable/disable) display of error messages from the
|
|
roentgen |
b75cab |
.SM TIFF
|
|
roentgen |
b75cab |
library when decoding images.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B z
|
|
roentgen |
b75cab |
Reset all parameters to their default settings (\c
|
|
roentgen |
b75cab |
.IR FillOrder ,
|
|
roentgen |
b75cab |
.IR PhotometricInterpretation ,
|
|
roentgen |
b75cab |
handling of warnings and errors).
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B PageUp
|
|
roentgen |
b75cab |
Display the previous image in the current file or the last
|
|
roentgen |
b75cab |
image in the previous file.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B PageDown
|
|
roentgen |
b75cab |
Display the next image in the current file or the first image
|
|
roentgen |
b75cab |
in the next file.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B Home
|
|
roentgen |
b75cab |
Display the first image in the current file.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B End
|
|
roentgen |
b75cab |
Display the last image in the current file (unimplemented).
|
|
roentgen |
b75cab |
.SH OPTIONS
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-c
|
|
roentgen |
b75cab |
Force image display in a colormap window.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-d
|
|
roentgen |
b75cab |
Specify an image to display by directory number.
|
|
roentgen |
b75cab |
By default the first image in the file is displayed.
|
|
roentgen |
b75cab |
Directories are numbered starting at zero.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-e
|
|
roentgen |
b75cab |
Enable reporting of error messages from the
|
|
roentgen |
b75cab |
.SM TIFF
|
|
roentgen |
b75cab |
library.
|
|
roentgen |
b75cab |
By default
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
silently ignores images that cannot be read.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-f
|
|
roentgen |
b75cab |
Force
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
to run as a foreground process.
|
|
roentgen |
b75cab |
By default
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
will place itself in the background once it has opened the
|
|
roentgen |
b75cab |
requested image file.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-l
|
|
roentgen |
b75cab |
Force the presumed bit ordering to be
|
|
roentgen |
b75cab |
.SM LSB
|
|
roentgen |
b75cab |
to
|
|
roentgen |
b75cab |
.SM MSB.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-m
|
|
roentgen |
b75cab |
Force the presumed bit ordering to be
|
|
roentgen |
b75cab |
.SM MSB
|
|
roentgen |
b75cab |
to
|
|
roentgen |
b75cab |
.SM LSB.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-o
|
|
roentgen |
b75cab |
Specify an image to display by directory offset.
|
|
roentgen |
b75cab |
By default the first image in the file is displayed.
|
|
roentgen |
b75cab |
Directories offsets may be specified using C-style syntax;
|
|
roentgen |
b75cab |
i.e. a leading ``0x'' for hexadecimal and a leading ``0'' for octal.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-p
|
|
roentgen |
b75cab |
Override the value of the
|
|
roentgen |
b75cab |
.I PhotometricInterpretation
|
|
roentgen |
b75cab |
tag; the parameter may be one of:
|
|
roentgen |
b75cab |
.BR miniswhite ,
|
|
roentgen |
b75cab |
.BR minisblack ,
|
|
roentgen |
b75cab |
.BR rgb ,
|
|
roentgen |
b75cab |
.BR palette ,
|
|
roentgen |
b75cab |
.BR mask ,
|
|
roentgen |
b75cab |
.BR separated ,
|
|
roentgen |
b75cab |
.BR ycbcr ,
|
|
roentgen |
b75cab |
and
|
|
roentgen |
b75cab |
.BR cielab .
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-r
|
|
roentgen |
b75cab |
Force image display in a full color window.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-s
|
|
roentgen |
b75cab |
Stop on the first read error.
|
|
roentgen |
b75cab |
By default all errors in the input data are ignored and
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
does it's best to display as much of an image as possible.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-w
|
|
roentgen |
b75cab |
Enable reporting of warning messages from the
|
|
roentgen |
b75cab |
.SM TIFF
|
|
roentgen |
b75cab |
library.
|
|
roentgen |
b75cab |
By default
|
|
roentgen |
b75cab |
.I tiffgt
|
|
roentgen |
b75cab |
ignores warning messages generated when reading an image.
|
|
roentgen |
b75cab |
.TP
|
|
roentgen |
b75cab |
.B \-v
|
|
roentgen |
b75cab |
Place information in the title bar describing
|
|
roentgen |
b75cab |
what type of window (full color or colormap) is being
|
|
roentgen |
b75cab |
used, the name of the input file, and the directory
|
|
roentgen |
b75cab |
index of the image (if non-zero).
|
|
roentgen |
b75cab |
By default, the window type is not shown in the title bar.
|
|
roentgen |
b75cab |
.SH BUGS
|
|
roentgen |
b75cab |
Images wider and taller than the display are silently truncated to avoid
|
|
roentgen |
b75cab |
crashing old versions of the window manager.
|
|
roentgen |
b75cab |
.SH "SEE ALSO"
|
|
roentgen |
b75cab |
.BR tiffdump (1),
|
|
roentgen |
b75cab |
.BR tiffinfo (1),
|
|
roentgen |
b75cab |
.BR tiffcp (1),
|
|
roentgen |
b75cab |
.BR libtiff (3TIFF)
|
|
roentgen |
b75cab |
.PP
|
|
roentgen |
b75cab |
Libtiff library home page:
|
|
roentgen |
b75cab |
.BR http://www.remotesensing.org/libtiff/
|