Blame man/tiff2rgba.1

Packit Service db44fb
.\" $Id: tiff2rgba.1,v 1.4 2006/04/20 12:17:19 dron Exp $
Packit Service db44fb
.\"
Packit Service db44fb
.\" Copyright (c) 1988-1997 Sam Leffler
Packit Service db44fb
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service db44fb
.\"
Packit Service db44fb
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service db44fb
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service db44fb
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service db44fb
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service db44fb
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service db44fb
.\" publicity relating to the software without the specific, prior written
Packit Service db44fb
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service db44fb
.\" 
Packit Service db44fb
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service db44fb
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service db44fb
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service db44fb
.\" 
Packit Service db44fb
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service db44fb
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service db44fb
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service db44fb
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service db44fb
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service db44fb
.\" OF THIS SOFTWARE.
Packit Service db44fb
.\"
Packit Service db44fb
.if n .po 0
Packit Service db44fb
.TH TIFF2RGBA 1 "November 2, 2005" "libtiff"
Packit Service db44fb
.SH NAME
Packit Service db44fb
tiff2rgba \- convert a 
Packit Service db44fb
.SM TIFF
Packit Service db44fb
image to RGBA color space
Packit Service db44fb
.SH SYNOPSIS
Packit Service db44fb
.B tiff2rgba
Packit Service db44fb
[
Packit Service db44fb
.I options
Packit Service db44fb
]
Packit Service db44fb
.I input.tif
Packit Service db44fb
.I output.tif
Packit Service db44fb
.SH DESCRIPTION
Packit Service db44fb
.I Tiff2rgba
Packit Service db44fb
converts a wide variety of TIFF images into an RGBA TIFF image.  This 
Packit Service db44fb
includes the ability to translate different color spaces and photometric
Packit Service db44fb
interpretation into RGBA, support for alpha blending, and translation
Packit Service db44fb
of many different bit depths into a 32bit RGBA image.
Packit Service db44fb
.P
Packit Service db44fb
Internally this program is implemented using the
Packit Service db44fb
.I TIFFReadRGBAImage()
Packit Service db44fb
function, and it suffers any limitations of that image.  This includes
Packit Service db44fb
limited support for > 8 BitsPerSample images, and flaws with some
Packit Service db44fb
esoteric combinations of BitsPerSample, photometric interpretation, 
Packit Service db44fb
block organization and planar configuration.  
Packit Service db44fb
.P
Packit Service db44fb
The generated images are stripped images with four samples per pixel 
Packit Service db44fb
(red, green, blue and alpha) or if the
Packit Service db44fb
.B \-n
Packit Service db44fb
flag is used, three samples
Packit Service db44fb
per pixel (red, green, and blue).  The resulting images are always planar
Packit Service db44fb
configuration contiguous.  For this reason, this program is a useful utility
Packit Service db44fb
for transform exotic TIFF files into a form ingestible by almost any TIFF
Packit Service db44fb
supporting software. 
Packit Service db44fb
.SH OPTIONS
Packit Service db44fb
.TP
Packit Service db44fb
.B \-c
Packit Service db44fb
Specify a compression scheme to use when writing image data:
Packit Service db44fb
.B "\-c none"
Packit Service db44fb
for no compression (the default),
Packit Service db44fb
.B "\-c packbits"
Packit Service db44fb
for the PackBits compression algorithm,
Packit Service db44fb
.B "\-c zip"
Packit Service db44fb
for the Deflate compression algorithm,
Packit Service db44fb
.B "\-c jpeg"
Packit Service db44fb
for the JPEG compression algorithm,
Packit Service db44fb
and
Packit Service db44fb
.B "\-c lzw"
Packit Service db44fb
for Lempel-Ziv & Welch.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-r
Packit Service db44fb
Write data with a specified number of rows per strip;
Packit Service db44fb
by default the number of rows/strip is selected so that each strip
Packit Service db44fb
is approximately 8 kilobytes.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-b
Packit Service db44fb
Process the image one block (strip/tile) at a time instead of by reading
Packit Service db44fb
the whole image into memory at once.  This may be necessary for very large
Packit Service db44fb
images on systems with limited RAM.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-n
Packit Service db44fb
Drop the alpha component from the output file, producing a pure RGB file.
Packit Service db44fb
Currently this does not work if the
Packit Service db44fb
.B \-b
Packit Service db44fb
flag is also in effect.
Packit Service db44fb
.SH "SEE ALSO"
Packit Service db44fb
.BR tiff2bw (1),
Packit Service db44fb
.BR TIFFReadRGBAImage (3t),
Packit Service db44fb
.BR libtiff (3)
Packit Service db44fb
.PP
Packit Service db44fb
Libtiff library home page:
Packit Service db44fb
.BR http://www.remotesensing.org/libtiff/