Blame man/tiffgt.1

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