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