Blame man/tiff2rgba.1

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