2 .\" Copyright (c) 1990-1997 Sam Leffler
3 .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
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.
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.
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
25 .TH FAX2TIFF 1 "November 2, 2005" "libtiff"
29 Class F fax file from raw fax data
45 Group 3 or Group 4 encoded data from one or more files containing ``raw''
46 Group 3 or Group 4 encoded data (typically obtained directly from a fax modem).
47 By default, each row of data in the resultant
49 file is 1-dimensionally encoded and
50 padded or truncated to 1728 pixels, as needed.
51 The resultant image is a set of low resolution (98 lines/inch)
52 or medium resolution (196 lines/inch)
53 pages, each of which is a single strip of data.
54 The generated file conforms to the
58 ) specification for storing facsimile data.
59 This means, in particular, that each page of the data does
62 .I "return to control"
66 for transmission by the
68 Group 3 specifications.
69 The old, ``classic'', format is created if the
72 (The Class F format can also be requested with the
76 The default name of the output image is
78 this can be changed with the
81 Each input file is assumed to be a separate page of facsimile data
82 from the same document.
83 The order in which input files are specified on the command
84 line is the order in which the resultant pages appear in the
87 Options that affect the interpretation of input data are:
92 Group 3 encoded (default).
100 Assume input data is uncompressed (Group 3 or Group 4).
103 Assume input data is encoded with the 1-dimensional version of the
105 Group 3 Huffman encoding algorithm (default).
108 Assume input data is 2-dimensional version of the
110 Group 3 Huffman encoding algorithm.
115 EOL-aligned (default). This option has effect with Group 3 encoded input only.
118 Assume input data is EOL-aligned. This option has effect with Group 3
122 Treat input data as having bits filled from most significant bit (\c
124 ) to most least bit (\c
129 Treat input data as having bits filled from least significant bit (\c
131 ) to most significant bit (\c
136 Assume input data was encoded with black as 0 and white as 1.
139 Assume input data was encoded with black as 1 and white as 0 (default).
142 Specify the vertical resolution, in lines/inch, of the input images.
143 By default input are assumed to have a vertical resolution of 196 lines/inch.
144 If images are low resolution facsimile, a value of 98 lines/inch should
148 Specify the width, in pixels, of the input images.
149 By default input are assumed to have a width of 1728 pixels.
151 Options that affect the output file format are:
154 Specify the name of the output file.
157 Force output to be compressed with the
159 Group 3 Huffman encoding algorithm (default).
162 Force output to be compressed with the
164 Group 4 Huffman encoding.
167 Force output to be uncompressed (Group 3 or Group 4).
170 Force output to be encoded with the 1-dimensional version of the
172 Group 3 Huffman encoding algorithm.
175 Force output to be encoded with the 2-dimensional version of the
177 Group 3 Huffman encoding algorithm (default).
180 Force the last bit of each
184 ) code to land on a byte boundary (default). This ``zero padding'' will
185 be reflected in the contents of the
189 file. This option has effect with Group 3 encoded output only.
192 Do not EOL-align output. This option has effect with Group 3 encoded
196 Generate "classic" Group 3 TIFF format.
199 Generate TIFF Class F (TIFF/F) format (default).
202 Force output data to have bits filled from most significant bit (\c
204 ) to most least bit (\c
209 Force output data to have bits filled from least significant bit (\c
211 ) to most significant bit (\c
216 Specify the number of rows (scanlines) in each strip of data
217 written to the output file.
218 By default (or when value
222 attempts to set the rows/strip
223 that no more than 8 kilobytes of data appear in a strip (with except of G3/G4
224 compression schemes). If you specify special value
226 it will results in infinite number of the rows per strip. The entire image
227 will be the one strip in that case. This is default in case of G3/G4 output
231 Stretch the input image vertically by writing each input row of
232 data twice to the output file.
237 to print the number of rows of data it retrieved from the input file.
240 Force output to be compressed with the LZW encoding.
242 The following warnings and errors come from the decoding
243 routines in the library.
245 .BR "Warning, %s: Premature EOL at scanline %d (x %d).\en" .
246 The input data had a row that was shorter than the expected width.
247 The row is padded with white.
249 .BR "%s: Premature EOF at scanline %d (x %d).\en" .
250 The decoder ran out of data in the middle of a scanline.
251 The resultant row is padded with white.
253 .BR "%s: Bad code word at row %d, x %d\en" .
256 was encountered while decoding the input file.
257 The row number and horizontal position is given.
258 The remainder of the input row is discarded, while
259 the corresponding output row is padded with white.
261 .BR "%s: Bad 2D code word at scanline %d.\en" .
262 An invalid Group 4 or 2D Group 3
264 was encountered while decoding the input file.
265 The row number and horizontal position is given.
266 The remainder of the input row is discarded, while
267 the corresponding output row is padded with white.
269 Input data are assumed to have a a ``top left'' orientation;
270 it should be possible to override this assumption
271 from the command line.
273 .BR "\s-1CCITT\s+1 Recommendation T.4"
274 (Standardization of Group 3 Facsimile Apparatus for Document Transmission).
276 .BR "The Spirit of TIFF Class F",
277 an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies.
284 Libtiff library home page:
285 .BR http://www.remotesensing.org/libtiff/