]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/man/tiff2rgba.1
Ensure there is valid context for DrawRectangle
[wxWidgets.git] / src / tiff / man / tiff2rgba.1
CommitLineData
80ed523f 1.\" $Id: tiff2rgba.1,v 1.4 2006-04-20 12:17:19 dron Exp $
8414a40c
VZ
2.\"
3.\" Copyright (c) 1988-1997 Sam Leffler
4.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5.\"
6.\" Permission to use, copy, modify, distribute, and sell this software and
7.\" its documentation for any purpose is hereby granted without fee, provided
8.\" that (i) the above copyright notices and this permission notice appear in
9.\" all copies of the software and related documentation, and (ii) the names of
10.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11.\" publicity relating to the software without the specific, prior written
12.\" permission of Sam Leffler and Silicon Graphics.
13.\"
14.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17.\"
18.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23.\" OF THIS SOFTWARE.
24.\"
25.if n .po 0
26.TH TIFF2RGBA 1 "November 2, 2005" "libtiff"
27.SH NAME
28tiff2rgba \- convert a
29.SM TIFF
30image to RGBA color space
31.SH SYNOPSIS
32.B tiff2rgba
33[
80ed523f 34.I options
8414a40c
VZ
35]
36.I input.tif
37.I output.tif
38.SH DESCRIPTION
39.I Tiff2rgba
40converts a wide variety of TIFF images into an RGBA TIFF image. This
41includes the ability to translate different color spaces and photometric
42interpretation into RGBA, support for alpha blending, and translation
43of many different bit depths into a 32bit RGBA image.
44.P
45Internally this program is implemented using the
46.I TIFFReadRGBAImage()
47function, and it suffers any limitations of that image. This includes
48limited support for > 8 BitsPerSample images, and flaws with some
49esoteric combinations of BitsPerSample, photometric interpretation,
50block organization and planar configuration.
51.P
52The generated images are stripped images with four samples per pixel
80ed523f
VZ
53(red, green, blue and alpha) or if the
54.B \-n
55flag is used, three samples
8414a40c
VZ
56per pixel (red, green, and blue). The resulting images are always planar
57configuration contiguous. For this reason, this program is a useful utility
58for transform exotic TIFF files into a form ingestible by almost any TIFF
59supporting software.
60.SH OPTIONS
61.TP
62.B \-c
63Specify a compression scheme to use when writing image data:
64.B "\-c none"
65for no compression (the default),
80ed523f 66.B "\-c packbits"
8414a40c 67for the PackBits compression algorithm,
80ed523f 68.B "\-c zip"
8414a40c 69for the Deflate compression algorithm,
80ed523f 70.B "\-c jpeg"
8414a40c
VZ
71for the JPEG compression algorithm,
72and
73.B "\-c lzw"
74for Lempel-Ziv & Welch.
75.TP
76.B \-r
77Write data with a specified number of rows per strip;
78by default the number of rows/strip is selected so that each strip
79is approximately 8 kilobytes.
80.TP
81.B \-b
82Process the image one block (strip/tile) at a time instead of by reading
83the whole image into memory at once. This may be necessary for very large
84images on systems with limited RAM.
85.TP
86.B \-n
87Drop the alpha component from the output file, producing a pure RGB file.
80ed523f
VZ
88Currently this does not work if the
89.B \-b
90flag is also in effect.
8414a40c
VZ
91.SH "SEE ALSO"
92.BR tiff2bw (1),
93.BR TIFFReadRGBAImage (3t),
94.BR libtiff (3)
95.PP
96Libtiff library home page:
97.BR http://www.remotesensing.org/libtiff/