1 <!-- Creator : groff version 1.18.1 -->
2 <!-- CreationDate: Mon Mar 13 18:03:12 2006 -->
5 <meta name=
"generator" content=
"groff -Thtml, see www.gnu.org">
6 <meta name=
"Content-Style" content=
"text/css">
7 <title>FAX2TIFF
</title>
11 <h1 align=center
>FAX2TIFF
</h1>
12 <a href=
"#NAME">NAME
</a><br>
13 <a href=
"#SYNOPSIS">SYNOPSIS
</a><br>
14 <a href=
"#DESCRIPTION">DESCRIPTION
</a><br>
15 <a href=
"#OPTIONS">OPTIONS
</a><br>
16 <a href=
"#DIAGNOSTICS">DIAGNOSTICS
</a><br>
17 <a href=
"#BUGS">BUGS
</a><br>
18 <a href=
"#SEE ALSO">SEE ALSO
</a><br>
24 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
25 cols=
"2" cellspacing=
"0" cellpadding=
"0">
26 <tr valign=
"top" align=
"left">
29 <p>fax2tiff
− create a
<small>TIFF
</small> Class F fax
30 file from raw fax data
</p>
33 <a name=
"SYNOPSIS"></a>
36 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
37 cols=
"2" cellspacing=
"0" cellpadding=
"0">
38 <tr valign=
"top" align=
"left">
41 <p><b>fax2tiff
</b> [
<i>options
</i> ] [
<b>−o
</b>
42 <i>output.tif
</i> ]
<i>input.raw
</i></p>
45 <a name=
"DESCRIPTION"></a>
48 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
49 cols=
"2" cellspacing=
"0" cellpadding=
"0">
50 <tr valign=
"top" align=
"left">
53 <p><i>Fax2tiff
</i> creates a
<small>TIFF
</small> file
54 containing
<small>CCITT
</small> Group
3 or Group
4 encoded
55 data from one or more files containing
56 ‘‘raw
’’ Group
3 or Group
4 encoded
57 data (typically obtained directly from a fax modem). By
58 default, each row of data in the resultant
59 <small>TIFF
</small> file is
1-dimensionally encoded and
60 padded or truncated to
1728 pixels, as needed. The resultant
61 image is a set of low resolution (
98 lines/inch) or medium
62 resolution (
196 lines/inch) pages, each of which is a single
63 strip of data. The generated file conforms to the
64 <small>TIFF
</small> Class F (
<small>FAX
</small> )
65 specification for storing facsimile data. This means, in
66 particular, that each page of the data does
<b>not
</b>
67 include the trailing
<i>return to control
</i> (
68 <small>RTC
</small> ) code; as required for transmission by
69 the
<small>CCITT
</small> Group
3 specifications. The old,
70 ‘‘classic
’’, format is created if
71 the
<b>−c
</b> option is used. (The Class F format can
72 also be requested with the
<b>−f
</b> option.)
</p>
74 <p>The default name of the output image is
<i>fax.tif
</i>;
75 this can be changed with the
<b>−o
</b> option. Each
76 input file is assumed to be a separate page of facsimile
77 data from the same document. The order in which input files
78 are specified on the command line is the order in which the
79 resultant pages appear in the output file.
</p>
82 <a name=
"OPTIONS"></a>
85 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
86 cols=
"2" cellspacing=
"0" cellpadding=
"0">
87 <tr valign=
"top" align=
"left">
90 <p>Options that affect the interpretation of input data
95 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
96 cols=
"5" cellspacing=
"0" cellpadding=
"0">
97 <tr valign=
"top" align=
"left">
101 <p><b>−3</b></p>
106 <p>Assume input data is
<small>CCITT
</small> Group
3
107 encoded (default).
</p>
111 <tr valign=
"top" align=
"left">
112 <td width=
"10%"></td>
115 <p><b>−4</b></p>
120 <p>Assume input data is
<small>CCITT
</small> Group
4
125 <tr valign=
"top" align=
"left">
126 <td width=
"10%"></td>
129 <p><b>−U
</b></p>
134 <p>Assume input data is uncompressed (Group
3 or Group
139 <tr valign=
"top" align=
"left">
140 <td width=
"10%"></td>
143 <p><b>−1</b></p>
148 <p>Assume input data is encoded with the
1-dimensional
149 version of the
<small>CCITT
</small> Group
3 Huffman encoding
150 algorithm (default).
</p>
154 <tr valign=
"top" align=
"left">
155 <td width=
"10%"></td>
158 <p><b>−2</b></p>
163 <p>Assume input data is
2-dimensional version of the
164 <small>CCITT
</small> Group
3 Huffman encoding algorithm.
</p>
168 <tr valign=
"top" align=
"left">
169 <td width=
"10%"></td>
172 <p><b>−P
</b></p>
177 <p>Assume input data is
<b>not
</b> EOL-aligned (default).
178 This option has effect with Group
3 encoded input only.
</p>
182 <tr valign=
"top" align=
"left">
183 <td width=
"10%"></td>
186 <p><b>−A
</b></p>
191 <p>Assume input data is EOL-aligned. This option has effect
192 with Group
3 encoded input only.
</p>
196 <tr valign=
"top" align=
"left">
197 <td width=
"10%"></td>
200 <p><b>−M
</b></p>
205 <p>Treat input data as having bits filled from most
206 significant bit (
<small>MSB
</small> ) to most least bit (
207 <small>LSB
</small> ).
</p>
211 <tr valign=
"top" align=
"left">
212 <td width=
"10%"></td>
215 <p><b>−L
</b></p>
220 <p>Treat input data as having bits filled from least
221 significant bit (
<small>LSB
</small> ) to most significant
222 bit (
<small>MSB
</small> ) (default).
</p>
226 <tr valign=
"top" align=
"left">
227 <td width=
"10%"></td>
230 <p><b>−B
</b></p>
235 <p>Assume input data was encoded with black as
0 and white
240 <tr valign=
"top" align=
"left">
241 <td width=
"10%"></td>
244 <p><b>−W
</b></p>
249 <p>Assume input data was encoded with black as
1 and white
254 <tr valign=
"top" align=
"left">
255 <td width=
"10%"></td>
258 <p><b>−R
</b></p>
263 <p>Specify the vertical resolution, in lines/inch, of the
264 input images. By default input are assumed to have a
265 vertical resolution of
196 lines/inch. If images are low
266 resolution facsimile, a value of
98 lines/inch should be
271 <tr valign=
"top" align=
"left">
272 <td width=
"10%"></td>
275 <p><b>−X
</b></p>
280 <p>Specify the width, in pixels, of the input images. By
281 default input are assumed to have a width of
1728
288 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
289 cols=
"2" cellspacing=
"0" cellpadding=
"0">
290 <tr valign=
"top" align=
"left">
293 <p>Options that affect the output file format are:
</p>
297 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
298 cols=
"5" cellspacing=
"0" cellpadding=
"0">
299 <tr valign=
"top" align=
"left">
300 <td width=
"10%"></td>
303 <p><b>−o
</b></p>
308 <p>Specify the name of the output file.
</p>
312 <tr valign=
"top" align=
"left">
313 <td width=
"10%"></td>
316 <p><b>−7</b></p>
321 <p>Force output to be compressed with the
322 <small>CCITT
</small> Group
3 Huffman encoding algorithm
327 <tr valign=
"top" align=
"left">
328 <td width=
"10%"></td>
331 <p><b>−8</b></p>
336 <p>Force output to be compressed with the
337 <small>CCITT
</small> Group
4 Huffman encoding.
</p>
341 <tr valign=
"top" align=
"left">
342 <td width=
"10%"></td>
345 <p><b>−u
</b></p>
350 <p>Force output to be uncompressed (Group
3 or Group
355 <tr valign=
"top" align=
"left">
356 <td width=
"10%"></td>
359 <p><b>−5</b></p>
364 <p>Force output to be encoded with the
1-dimensional
365 version of the
<small>CCITT
</small> Group
3 Huffman encoding
370 <tr valign=
"top" align=
"left">
371 <td width=
"10%"></td>
374 <p><b>−6</b></p>
379 <p>Force output to be encoded with the
2-dimensional
380 version of the
<small>CCITT
</small> Group
3 Huffman encoding
381 algorithm (default).
</p>
385 <tr valign=
"top" align=
"left">
386 <td width=
"10%"></td>
389 <p><b>−a
</b></p>
394 <p>Force the last bit of each
<i>End Of Line
</i> (
395 <small>EOL
</small> ) code to land on a byte boundary
396 (default). This
‘‘zero padding
’’
397 will be reflected in the contents of the
398 <i>Group3Options
</i> tag of the resultant
399 <small>TIFF
</small> file. This option has effect with Group
400 3 encoded output only.
</p>
404 <tr valign=
"top" align=
"left">
405 <td width=
"10%"></td>
408 <p><b>−p
</b></p>
413 <p>Do not EOL-align output. This option has effect with
414 Group
3 encoded output only.
</p>
418 <tr valign=
"top" align=
"left">
419 <td width=
"10%"></td>
422 <p><b>−c
</b></p>
427 <p>Generate
"classic
" Group
3 TIFF format.
</p>
431 <tr valign=
"top" align=
"left">
432 <td width=
"10%"></td>
435 <p><b>−f
</b></p>
440 <p>Generate TIFF Class F (TIFF/F) format (default).
</p>
444 <tr valign=
"top" align=
"left">
445 <td width=
"10%"></td>
448 <p><b>−m
</b></p>
453 <p>Force output data to have bits filled from most
454 significant bit (
<small>MSB
</small> ) to most least bit (
455 <small>LSB
</small> ).
</p>
459 <tr valign=
"top" align=
"left">
460 <td width=
"10%"></td>
463 <p><b>−l
</b></p>
468 <p>Force output data to have bits filled from least
469 significant bit (
<small>LSB
</small> ) to most significant
470 bit (
<small>MSB
</small> ) (default).
</p>
474 <tr valign=
"top" align=
"left">
475 <td width=
"10%"></td>
478 <p><b>−r
</b></p>
483 <p>Specify the number of rows (scanlines) in each strip of
484 data written to the output file. By default (or when value
485 <b>0</b> is specified),
<i>tiffcp
</i> attempts to set the
486 rows/strip that no more than
8 kilobytes of data appear in a
487 strip (with except of G3/G4 compression schemes). If you
488 specify special value
<b>-
1</b> it will results in infinite
489 number of the rows per strip. The entire image will be the
490 one strip in that case. This is default in case of G3/G4
491 output compression schemes.
</p>
495 <tr valign=
"top" align=
"left">
496 <td width=
"10%"></td>
499 <p><b>−s
</b></p>
504 <p>Stretch the input image vertically by writing each input
505 row of data twice to the output file.
</p>
509 <tr valign=
"top" align=
"left">
510 <td width=
"10%"></td>
513 <p><b>−v
</b></p>
518 <p>Force
<i>fax2tiff
</i> to print the number of rows of
519 data it retrieved from the input file.
</p>
523 <tr valign=
"top" align=
"left">
524 <td width=
"10%"></td>
527 <p><b>−z
</b></p>
532 <p>Force output to be compressed with the LZW encoding.
</p>
537 <a name=
"DIAGNOSTICS"></a>
540 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
541 cols=
"2" cellspacing=
"0" cellpadding=
"0">
542 <tr valign=
"top" align=
"left">
545 <p>The following warnings and errors come from the decoding
546 routines in the library.
</p>
548 <p><b>Warning, %s: Premature EOL at scanline %d (x
549 %d).\n
</b>. The input data had a row that was shorter than
550 the expected width. The row is padded with white.
</p>
552 <p><b>%s: Premature EOF at scanline %d (x %d).\n
</b>. The
553 decoder ran out of data in the middle of a scanline. The
554 resultant row is padded with white.
</p>
556 <p><b>%s: Bad code word at row %d, x %d\n
</b>. An invalid
557 Group
3 <i>code
</i> was encountered while decoding the input
558 file. The row number and horizontal position is given. The
559 remainder of the input row is discarded, while the
560 corresponding output row is padded with white.
</p>
562 <p><b>%s: Bad
2D code word at scanline %d.\n
</b>. An invalid
563 Group
4 or
2D Group
3 <i>code
</i> was encountered while
564 decoding the input file. The row number and horizontal
565 position is given. The remainder of the input row is
566 discarded, while the corresponding output row is padded with
573 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
574 cols=
"2" cellspacing=
"0" cellpadding=
"0">
575 <tr valign=
"top" align=
"left">
578 <p>Input data are assumed to have a a
‘‘top
579 left
’’ orientation; it should be possible to
580 override this assumption from the command line.
</p>
583 <a name=
"SEE ALSO"></a>
586 <table width=
"100%" border=
0 rules=
"none" frame=
"void"
587 cols=
"2" cellspacing=
"0" cellpadding=
"0">
588 <tr valign=
"top" align=
"left">
591 <p><b><small>CCITT
</small> Recommendation T
.4</b>
592 (Standardization of Group
3 Facsimile Apparatus for Document
595 <p><b>The Spirit of TIFF Class F
</b>, an appendix to the
596 TIFF
5.0 specification prepared by Cygnet Technologies.
</p>
598 <p><b>tiffinfo
</b>(
1),
<b>tiffdither
</b>(
1),
599 <b>tiffgt
</b>(
1),
<b>libtiff
</b>(
3)
</p>
601 <p>Libtiff library home page:
602 <b>http://www.remotesensing.org/libtiff/
</b></p>