roentgen b75cab
.\" $Id: tiff2rgba.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 TIFF2RGBA 1 "November 2, 2005" "libtiff"
roentgen b75cab
.SH NAME
roentgen b75cab
tiff2rgba \- convert a 
roentgen b75cab
.SM TIFF
roentgen b75cab
image to RGBA color space
roentgen b75cab
.SH SYNOPSIS
roentgen b75cab
.B tiff2rgba
roentgen b75cab
[
roentgen b75cab
.I options
roentgen b75cab
]
roentgen b75cab
.I input.tif
roentgen b75cab
.I output.tif
roentgen b75cab
.SH DESCRIPTION
roentgen b75cab
.I Tiff2rgba
roentgen b75cab
converts a wide variety of TIFF images into an RGBA TIFF image.  This 
roentgen b75cab
includes the ability to translate different color spaces and photometric
roentgen b75cab
interpretation into RGBA, support for alpha blending, and translation
roentgen b75cab
of many different bit depths into a 32bit RGBA image.
roentgen b75cab
.P
roentgen b75cab
Internally this program is implemented using the
roentgen b75cab
.I TIFFReadRGBAImage()
roentgen b75cab
function, and it suffers any limitations of that image.  This includes
roentgen b75cab
limited support for > 8 BitsPerSample images, and flaws with some
roentgen b75cab
esoteric combinations of BitsPerSample, photometric interpretation, 
roentgen b75cab
block organization and planar configuration.  
roentgen b75cab
.P
roentgen b75cab
The generated images are stripped images with four samples per pixel 
roentgen b75cab
(red, green, blue and alpha) or if the
roentgen b75cab
.B \-n
roentgen b75cab
flag is used, three samples
roentgen b75cab
per pixel (red, green, and blue).  The resulting images are always planar
roentgen b75cab
configuration contiguous.  For this reason, this program is a useful utility
roentgen b75cab
for transform exotic TIFF files into a form ingestible by almost any TIFF
roentgen b75cab
supporting software. 
roentgen b75cab
.SH OPTIONS
roentgen b75cab
.TP
roentgen b75cab
.B \-c
roentgen b75cab
Specify a compression scheme to use when writing image data:
roentgen b75cab
.B "\-c none"
roentgen b75cab
for no compression (the default),
roentgen b75cab
.B "\-c packbits"
roentgen b75cab
for the PackBits compression algorithm,
roentgen b75cab
.B "\-c zip"
roentgen b75cab
for the Deflate compression algorithm,
roentgen b75cab
.B "\-c jpeg"
roentgen b75cab
for the JPEG compression algorithm,
roentgen b75cab
and
roentgen b75cab
.B "\-c lzw"
roentgen b75cab
for Lempel-Ziv & Welch.
roentgen b75cab
.TP
roentgen b75cab
.B \-r
roentgen b75cab
Write data with a specified number of rows per strip;
roentgen b75cab
by default the number of rows/strip is selected so that each strip
roentgen b75cab
is approximately 8 kilobytes.
roentgen b75cab
.TP
roentgen b75cab
.B \-b
roentgen b75cab
Process the image one block (strip/tile) at a time instead of by reading
roentgen b75cab
the whole image into memory at once.  This may be necessary for very large
roentgen b75cab
images on systems with limited RAM.
roentgen b75cab
.TP
roentgen b75cab
.B \-n
roentgen b75cab
Drop the alpha component from the output file, producing a pure RGB file.
roentgen b75cab
Currently this does not work if the
roentgen b75cab
.B \-b
roentgen b75cab
flag is also in effect.
roentgen b75cab
.SH "SEE ALSO"
roentgen b75cab
.BR tiff2bw (1),
roentgen b75cab
.BR TIFFReadRGBAImage (3t),
roentgen b75cab
.BR libtiff (3)
roentgen b75cab
.PP
roentgen b75cab
Libtiff library home page:
roentgen b75cab
.BR http://www.remotesensing.org/libtiff/