1 .\" $Id: fax2tiff.1,v 1.6 2005/11/02 11:07:19 dron Exp $
3 .\" Copyright (c) 1990-1997 Sam Leffler
4 .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
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.
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.
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
26 .TH FAX2TIFF 1 "November 2, 2005" "libtiff"
30 Class F fax file from raw fax data
46 Group 3 or Group 4 encoded data from one or more files containing ``raw''
47 Group 3 or Group 4 encoded data (typically obtained directly from a fax modem).
48 By default, each row of data in the resultant
50 file is 1-dimensionally encoded and
51 padded or truncated to 1728 pixels, as needed.
52 The resultant image is a set of low resolution (98 lines/inch)
53 or medium resolution (196 lines/inch)
54 pages, each of which is a single strip of data.
55 The generated file conforms to the
59 ) specification for storing facsimile data.
60 This means, in particular, that each page of the data does
63 .I "return to control"
67 for transmission by the
69 Group 3 specifications.
70 The old, ``classic'', format is created if the
73 (The Class F format can also be requested with the
77 The default name of the output image is
79 this can be changed with the
82 Each input file is assumed to be a separate page of facsimile data
83 from the same document.
84 The order in which input files are specified on the command
85 line is the order in which the resultant pages appear in the
88 Options that affect the interpretation of input data are:
93 Group 3 encoded (default).
101 Assume input data is uncompressed (Group 3 or Group 4).
104 Assume input data is encoded with the 1-dimensional version of the
106 Group 3 Huffman encoding algorithm (default).
109 Assume input data is 2-dimensional version of the
111 Group 3 Huffman encoding algorithm.
116 EOL-aligned (default). This option has effect with Group 3 encoded input only.
119 Assume input data is EOL-aligned. This option has effect with Group 3
123 Treat input data as having bits filled from most significant bit (\c
125 ) to most least bit (\c
130 Treat input data as having bits filled from least significant bit (\c
132 ) to most significant bit (\c
137 Assume input data was encoded with black as 0 and white as 1.
140 Assume input data was encoded with black as 1 and white as 0 (default).
143 Specify the vertical resolution, in lines/inch, of the input images.
144 By default input are assumed to have a vertical resolution of 196 lines/inch.
145 If images are low resolution facsimile, a value of 98 lines/inch should
149 Specify the width, in pixels, of the input images.
150 By default input are assumed to have a width of 1728 pixels.
152 Options that affect the output file format are:
155 Specify the name of the output file.
158 Force output to be compressed with the
160 Group 3 Huffman encoding algorithm (default).
163 Force output to be compressed with the
165 Group 4 Huffman encoding.
168 Force output to be uncompressed (Group 3 or Group 4).
171 Force output to be encoded with the 1-dimensional version of the
173 Group 3 Huffman encoding algorithm.
176 Force output to be encoded with the 2-dimensional version of the
178 Group 3 Huffman encoding algorithm (default).
181 Force the last bit of each
185 ) code to land on a byte boundary (default). This ``zero padding'' will
186 be reflected in the contents of the
190 file. This option has effect with Group 3 encoded output only.
193 Do not EOL-align output. This option has effect with Group 3 encoded
197 Generate "classic" Group 3 TIFF format.
200 Generate TIFF Class F (TIFF/F) format (default).
203 Force output data to have bits filled from most significant bit (\c
205 ) to most least bit (\c
210 Force output data to have bits filled from least significant bit (\c
212 ) to most significant bit (\c
217 Specify the number of rows (scanlines) in each strip of data
218 written to the output file.
219 By default (or when value
223 attempts to set the rows/strip
224 that no more than 8 kilobytes of data appear in a strip (with except of G3/G4
225 compression schemes). If you specify special value
227 it will results in infinite number of the rows per strip. The entire image
228 will be the one strip in that case. This is default in case of G3/G4 output
232 Stretch the input image vertically by writing each input row of
233 data twice to the output file.
238 to print the number of rows of data it retrieved from the input file.
241 Force output to be compressed with the LZW encoding.
243 The following warnings and errors come from the decoding
244 routines in the library.
246 .BR "Warning, %s: Premature EOL at scanline %d (x %d).\en" .
247 The input data had a row that was shorter than the expected width.
248 The row is padded with white.
250 .BR "%s: Premature EOF at scanline %d (x %d).\en" .
251 The decoder ran out of data in the middle of a scanline.
252 The resultant row is padded with white.
254 .BR "%s: Bad code word at row %d, x %d\en" .
257 was encountered while decoding the input file.
258 The row number and horizontal position is given.
259 The remainder of the input row is discarded, while
260 the corresponding output row is padded with white.
262 .BR "%s: Bad 2D code word at scanline %d.\en" .
263 An invalid Group 4 or 2D Group 3
265 was encountered while decoding the input file.
266 The row number and horizontal position is given.
267 The remainder of the input row is discarded, while
268 the corresponding output row is padded with white.
270 Input data are assumed to have a a ``top left'' orientation;
271 it should be possible to override this assumption
272 from the command line.
274 .BR "\s-1CCITT\s+1 Recommendation T.4"
275 (Standardization of Group 3 Facsimile Apparatus for Document Transmission).
277 .BR "The Spirit of TIFF Class F",
278 an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies.
285 Libtiff library home page:
286 .BR http://www.remotesensing.org/libtiff/