Blame man/tiffgt.1

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