xref: /libtiff-4.0.7/html/man/raw2tiff.1.html (revision 939e90cd)
1<html>
2<head>
3<meta name="generator" content="groff -Thtml, see www.gnu.org">
4<meta name="Content-Style" content="text/css">
5<title>RAW2TIFF</title>
6</head>
7<body>
8
9<h1 align=center>RAW2TIFF</h1>
10<a href="#NAME">NAME</a><br>
11<a href="#SYNOPSIS">SYNOPSIS</a><br>
12<a href="#DESCRIPTION">DESCRIPTION</a><br>
13<a href="#OPTIONS">OPTIONS</a><br>
14<a href="#SEE ALSO">SEE ALSO</a><br>
15
16<hr>
17<!-- Creator     : groff version 1.17.2 -->
18<!-- CreationDate: Wed Oct  2 19:05:50 2002 -->
19<a name="NAME"></a>
20<h2>NAME</h2>
21<table width="100%" border=0 rules="none" frame="void"
22       cols="2" cellspacing="0" cellpadding="0">
23<tr valign="top" align="left">
24<td width="10%"></td><td width="90%">
25raw2tiff - create a <small>TIFF</small> file from a raw data</td></table>
26<a name="SYNOPSIS"></a>
27<h2>SYNOPSIS</h2>
28
29<table width="100%" border=0 rules="none" frame="void"
30       cols="2" cellspacing="0" cellpadding="0">
31<tr valign="top" align="left">
32<td width="10%"></td><td width="90%">
33<b>raw2tiff</b> <i>-w &lt;number&gt;</i> [ <i>options</i> ]
34<i>input.raw output.tif</i></td></table>
35<a name="DESCRIPTION"></a>
36<h2>DESCRIPTION</h2>
37
38<table width="100%" border=0 rules="none" frame="void"
39       cols="2" cellspacing="0" cellpadding="0">
40<tr valign="top" align="left">
41<td width="10%"></td><td width="90%">
42<i>raw2tiff</i> converts a raw byte sequence into
43<small>TIFF.</small> By default, the <small>TIFF</small>
44image is created with data samples packed
45(<i>PlanarConfiguration</i>=1), compressed with the PackBits
46algorithm (<i>Compression</i>=<i>32773),</i> and with each
47strip no more than 8 kilobytes. These characteristics can
48overridden, or explicitly specified with the options
49described below.</td></table>
50<a name="OPTIONS"></a>
51<h2>OPTIONS</h2>
52
53<table width="100%" border=0 rules="none" frame="void"
54       cols="2" cellspacing="0" cellpadding="0">
55<tr valign="top" align="left">
56<td width="10%"></td><td width="90%">
57<b>-H &lt;number&gt;</b></td></table>
58
59<table width="100%" border=0 rules="none" frame="void"
60       cols="2" cellspacing="0" cellpadding="0">
61<tr valign="top" align="left">
62<td width="21%"></td><td width="79%">
63size of input image file header in bytes (0 by default).
64This amount of data just will be skipped from the start of
65file while reading.</td></table>
66
67<table width="100%" border=0 rules="none" frame="void"
68       cols="2" cellspacing="0" cellpadding="0">
69<tr valign="top" align="left">
70<td width="10%"></td><td width="90%">
71<b>-w &lt;number&gt;</b></td></table>
72
73<table width="100%" border=0 rules="none" frame="void"
74       cols="2" cellspacing="0" cellpadding="0">
75<tr valign="top" align="left">
76<td width="21%"></td><td width="79%">
77width of input image in pixels. You must set this
78parameter.</td></table>
79
80<table width="100%" border=0 rules="none" frame="void"
81       cols="2" cellspacing="0" cellpadding="0">
82<tr valign="top" align="left">
83<td width="10%"></td><td width="90%">
84<b>-l &lt;number&gt;</b></td></table>
85
86<table width="100%" border=0 rules="none" frame="void"
87       cols="2" cellspacing="0" cellpadding="0">
88<tr valign="top" align="left">
89<td width="21%"></td><td width="79%">
90length of input image in lines. Will be calculated from the
91size of input file if not specified.</td></table>
92
93<table width="100%" border=0 rules="none" frame="void"
94       cols="2" cellspacing="0" cellpadding="0">
95<tr valign="top" align="left">
96<td width="10%"></td><td width="90%">
97<b>-b &lt;number&gt;</b></td></table>
98
99<table width="100%" border=0 rules="none" frame="void"
100       cols="2" cellspacing="0" cellpadding="0">
101<tr valign="top" align="left">
102<td width="21%"></td><td width="79%">
103number of bands in input image (1 by default).</td></table>
104
105<table width="100%" border=0 rules="none" frame="void"
106       cols="2" cellspacing="0" cellpadding="0">
107<tr valign="top" align="left">
108<td width="10%"></td><td width="90%">
109<b>-d data_type</b></td></table>
110
111<table width="100%" border=0 rules="none" frame="void"
112       cols="2" cellspacing="0" cellpadding="0">
113<tr valign="top" align="left">
114<td width="21%"></td><td width="79%">
115type of samples in input image, where <b>data_type</b> may
116be:<i><br>
117byte</i> 8-bit unsigned integer (default),<i><br>
118short</i> 16-bit unsigned integer,<i><br>
119long</i> 32-bit unsigned integer,<i><br>
120sbyte</i> 8-bit signed integer,<i><br>
121sshort</i> 16-bit signed integer,<i><br>
122slong</i> 32-bit signed integer,<i><br>
123float</i> 32-bit IEEE floating point,<i><br>
124double</i> 64-bit IEEE floating point,</td></table>
125
126<table width="100%" border=0 rules="none" frame="void"
127       cols="2" cellspacing="0" cellpadding="0">
128<tr valign="top" align="left">
129<td width="10%"></td><td width="90%">
130<b>-i config</b></td></table>
131
132<table width="100%" border=0 rules="none" frame="void"
133       cols="2" cellspacing="0" cellpadding="0">
134<tr valign="top" align="left">
135<td width="21%"></td><td width="79%">
136type of samples interleaving in input image, where
137<b>config</b> may be:<i><br>
138pixel</i> pixel interleaved data (default),<i><br>
139band</i> band interleaved data.</td></table>
140
141<table width="100%" border=0 rules="none" frame="void"
142       cols="2" cellspacing="0" cellpadding="0">
143<tr valign="top" align="left">
144<td width="10%"></td><td width="90%">
145<b>-s</b></td></table>
146
147<table width="100%" border=0 rules="none" frame="void"
148       cols="2" cellspacing="0" cellpadding="0">
149<tr valign="top" align="left">
150<td width="21%"></td><td width="79%">
151swap bytes fetched from the input file.</td></table>
152
153<table width="100%" border=0 rules="none" frame="void"
154       cols="2" cellspacing="0" cellpadding="0">
155<tr valign="top" align="left">
156<td width="10%"></td><td width="90%">
157<b>-L</b></td></table>
158
159<table width="100%" border=0 rules="none" frame="void"
160       cols="2" cellspacing="0" cellpadding="0">
161<tr valign="top" align="left">
162<td width="21%"></td><td width="79%">
163input data has LSB2MSB bit order (default).</td></table>
164
165<table width="100%" border=0 rules="none" frame="void"
166       cols="2" cellspacing="0" cellpadding="0">
167<tr valign="top" align="left">
168<td width="10%"></td><td width="90%">
169<b>-M</b></td></table>
170
171<table width="100%" border=0 rules="none" frame="void"
172       cols="2" cellspacing="0" cellpadding="0">
173<tr valign="top" align="left">
174<td width="21%"></td><td width="79%">
175input data has MSB2LSB bit order.</td></table>
176
177<table width="100%" border=0 rules="none" frame="void"
178       cols="2" cellspacing="0" cellpadding="0">
179<tr valign="top" align="left">
180<td width="10%"></td><td width="90%">
181<b>-c</b></td></table>
182
183<table width="100%" border=0 rules="none" frame="void"
184       cols="2" cellspacing="0" cellpadding="0">
185<tr valign="top" align="left">
186<td width="21%"></td><td width="79%">
187Specify a compression scheme to use when writing image data:
188<b>-c none</b> for no compression, <b>-c packbits</b> for
189the PackBits compression algorithm (the default), <b>-c
190jpeg</b> for the baseline JPEG compression algorithm, <b>-c
191zip</b> for the Deflate compression algorithm, and <b>-c
192lzw</b> for Lempel-Ziv &amp; Welch.</td></table>
193
194<table width="100%" border=0 rules="none" frame="void"
195       cols="2" cellspacing="0" cellpadding="0">
196<tr valign="top" align="left">
197<td width="10%"></td><td width="90%">
198<b>-r &lt;number&gt;</b></td></table>
199
200<table width="100%" border=0 rules="none" frame="void"
201       cols="2" cellspacing="0" cellpadding="0">
202<tr valign="top" align="left">
203<td width="21%"></td><td width="79%">
204Write data with a specified number of rows per strip; by
205default the number of rows/strip is selected so that each
206strip is approximately 8 kilobytes.</td></table>
207<a name="SEE ALSO"></a>
208<h2>SEE ALSO</h2>
209
210<table width="100%" border=0 rules="none" frame="void"
211       cols="2" cellspacing="0" cellpadding="0">
212<tr valign="top" align="left">
213<td width="10%"></td><td width="90%">
214<i>pal2rgb</i>(1), <i>tiffinfo</i>(1), <i>tiffcp</i>(1),
215<i>tiffmedian</i>(1), <i>libtiff</i>(3)</td></table>
216<hr>
217</body>
218</html>
219