]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/man/ras2tiff.1
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / src / tiff / man / ras2tiff.1
1 .\"
2 .\" Copyright (c) 1990-1997 Sam Leffler
3 .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
4 .\"
5 .\" Permission to use, copy, modify, distribute, and sell this software and
6 .\" its documentation for any purpose is hereby granted without fee, provided
7 .\" that (i) the above copyright notices and this permission notice appear in
8 .\" all copies of the software and related documentation, and (ii) the names of
9 .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
10 .\" publicity relating to the software without the specific, prior written
11 .\" permission of Sam Leffler and Silicon Graphics.
12 .\"
13 .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16 .\"
17 .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22 .\" OF THIS SOFTWARE.
23 .\"
24 .if n .po 0
25 .TH RAS2TIFF 1 "November 2, 2005" "libtiff"
26 .SH NAME
27 ras2tiff \- create a
28 .SM TIFF
29 file from a Sun rasterfile
30 .SH SYNOPSIS
31 .B ras2tiff
32 [
33 .I options
34 ]
35 .I input.ras
36 .I output.tif
37 .SH DESCRIPTION
38 .I ras2tiff
39 converts a file in the Sun rasterfile format to
40 .SM TIFF.
41 By default, the
42 .SM TIFF
43 image is created with data samples packed (\c
44 .IR PlanarConfiguration =1),
45 compressed with the Lempel-Ziv & Welch algorithm (\c
46 .IR Compression =5),
47 and with each strip no more than 8 kilobytes.
48 These characteristics can overridden, or explicitly specified
49 with the options described below.
50 .PP
51 Any colormap information in the rasterfile is carried over to the
52 .SM TIFF
53 file by including a
54 .I Colormap
55 tag in the output file.
56 If the rasterfile has a colormap, the
57 .I PhotometricInterpretation
58 tag is set to 3 (palette);
59 otherwise it is set to 2 (RGB) if the depth
60 is 24 or 1 (min-is-black) if the depth is not 24.
61 .SH OPTIONS
62 .TP
63 .B \-c
64 Specify a compression scheme to use when writing image data:
65 .B "\-c none"
66 for no compression,
67 .B "\-c packbits"
68 for the PackBits compression algorithm,
69 .B "\-c jpeg"
70 for the baseline JPEG compression algorithm,
71 .B "\-c zip
72 for the Deflate compression algorithm,
73 and
74 .B "\-c lzw"
75 for Lempel-Ziv & Welch (the default).
76 .TP
77 .B \-r
78 Write data with a specified number of rows per strip;
79 by default the number of rows/strip is selected so that each strip
80 is approximately 8 kilobytes.
81 .SH BUGS
82 Does not handle all possible rasterfiles.
83 In particular,
84 .I ras2tiff
85 does not handle run-length encoded images.
86 .SH "SEE ALSO"
87 .BR pal2rgb (1),
88 .BR tiffinfo (1),
89 .BR tiffcp (1),
90 .BR tiffmedian (1),
91 .BR libtiff (3)
92 .PP
93 Libtiff library home page:
94 .BR http://www.remotesensing.org/libtiff/
95