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