Blame man/fax2tiff.1

Packit Service db44fb
.\" $Id: fax2tiff.1,v 1.7 2006/04/20 12:17:19 dron Exp $
Packit Service db44fb
.\"
Packit Service db44fb
.\" Copyright (c) 1990-1997 Sam Leffler
Packit Service db44fb
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
Packit Service db44fb
.\"
Packit Service db44fb
.\" Permission to use, copy, modify, distribute, and sell this software and 
Packit Service db44fb
.\" its documentation for any purpose is hereby granted without fee, provided
Packit Service db44fb
.\" that (i) the above copyright notices and this permission notice appear in
Packit Service db44fb
.\" all copies of the software and related documentation, and (ii) the names of
Packit Service db44fb
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
Packit Service db44fb
.\" publicity relating to the software without the specific, prior written
Packit Service db44fb
.\" permission of Sam Leffler and Silicon Graphics.
Packit Service db44fb
.\" 
Packit Service db44fb
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
Packit Service db44fb
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
Packit Service db44fb
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
Packit Service db44fb
.\" 
Packit Service db44fb
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
Packit Service db44fb
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
Packit Service db44fb
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
Packit Service db44fb
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
Packit Service db44fb
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
Packit Service db44fb
.\" OF THIS SOFTWARE.
Packit Service db44fb
.\"
Packit Service db44fb
.if n .po 0
Packit Service db44fb
.TH FAX2TIFF 1 "November 2, 2005" "libtiff"
Packit Service db44fb
.SH NAME
Packit Service db44fb
fax2tiff \- create a
Packit Service db44fb
.SM TIFF
Packit Service db44fb
Class F fax file from raw fax data
Packit Service db44fb
.SH SYNOPSIS
Packit Service db44fb
.B fax2tiff
Packit Service db44fb
[
Packit Service db44fb
.I options
Packit Service db44fb
] [
Packit Service db44fb
.B \-o
Packit Service db44fb
.I output.tif
Packit Service db44fb
]
Packit Service db44fb
.I input.raw
Packit Service db44fb
.SH DESCRIPTION
Packit Service db44fb
.I Fax2tiff
Packit Service db44fb
creates a
Packit Service db44fb
.SM TIFF
Packit Service db44fb
file containing 
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 or Group 4 encoded data from one or more files containing ``raw''
Packit Service db44fb
Group 3 or Group 4 encoded data (typically obtained directly from a fax modem).
Packit Service db44fb
By default, each row of data in the resultant
Packit Service db44fb
.SM TIFF
Packit Service db44fb
file is 1-dimensionally encoded and
Packit Service db44fb
padded or truncated to 1728 pixels, as needed.
Packit Service db44fb
The resultant image is a set of low resolution (98 lines/inch)
Packit Service db44fb
or medium resolution (196 lines/inch)
Packit Service db44fb
pages, each of which is a single strip of data.
Packit Service db44fb
The generated file conforms to the
Packit Service db44fb
.SM TIFF
Packit Service db44fb
Class F (\c
Packit Service db44fb
.SM FAX\c
Packit Service db44fb
) specification for storing facsimile data.
Packit Service db44fb
This means, in particular, that each page of the data does
Packit Service db44fb
.B not
Packit Service db44fb
include the trailing 
Packit Service db44fb
.I "return to control"
Packit Service db44fb
(\c
Packit Service db44fb
.SM RTC\c
Packit Service db44fb
) code; as required
Packit Service db44fb
for transmission by the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 specifications.
Packit Service db44fb
The old, ``classic'', format is created if the
Packit Service db44fb
.B \-c
Packit Service db44fb
option is used.
Packit Service db44fb
(The Class F format can also be requested with the
Packit Service db44fb
.B \-f
Packit Service db44fb
option.)
Packit Service db44fb
.PP
Packit Service db44fb
The default name of the output image is
Packit Service db44fb
.IR fax.tif ;
Packit Service db44fb
this can be changed with the
Packit Service db44fb
.B \-o
Packit Service db44fb
option.
Packit Service db44fb
Each input file is assumed to be a separate page of facsimile data
Packit Service db44fb
from the same document.
Packit Service db44fb
The order in which input files are specified on the command
Packit Service db44fb
line is the order in which the resultant pages appear in the
Packit Service db44fb
output file.
Packit Service db44fb
.SH OPTIONS
Packit Service db44fb
Options that affect the interpretation of input data are:
Packit Service db44fb
.TP
Packit Service db44fb
.B \-3
Packit Service db44fb
Assume input data is
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 encoded (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-4
Packit Service db44fb
Assume input data is
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 4 encoded.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-U
Packit Service db44fb
Assume input data is uncompressed (Group 3 or Group 4).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-1
Packit Service db44fb
Assume input data is encoded with the 1-dimensional version of the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 Huffman encoding algorithm (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-2
Packit Service db44fb
Assume input data is 2-dimensional version of the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 Huffman encoding algorithm.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-P
Packit Service db44fb
Assume input data is
Packit Service db44fb
.B not
Packit Service db44fb
EOL-aligned (default). This option has effect with Group 3 encoded input only.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-A
Packit Service db44fb
Assume input data is EOL-aligned. This option has effect with Group 3
Packit Service db44fb
encoded input only.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-M
Packit Service db44fb
Treat input data as having bits filled from most significant bit (\c
Packit Service db44fb
.SM MSB\c
Packit Service db44fb
) to most least bit (\c
Packit Service db44fb
.SM LSB\c
Packit Service db44fb
).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-L
Packit Service db44fb
Treat input data as having bits filled from least significant bit (\c
Packit Service db44fb
.SM LSB\c
Packit Service db44fb
) to most significant bit (\c
Packit Service db44fb
.SM MSB\c
Packit Service db44fb
) (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-B
Packit Service db44fb
Assume input data was encoded with black as 0 and white as 1.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-W
Packit Service db44fb
Assume input data was encoded with black as 1 and white as 0 (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-R
Packit Service db44fb
Specify the vertical resolution, in lines/inch, of the input images.
Packit Service db44fb
By default input are assumed to have a vertical resolution of 196 lines/inch.
Packit Service db44fb
If images are low resolution facsimile, a value of 98 lines/inch should
Packit Service db44fb
be specified.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-X
Packit Service db44fb
Specify the width, in pixels, of the input images.
Packit Service db44fb
By default input are assumed to have a width of 1728 pixels.
Packit Service db44fb
.PP
Packit Service db44fb
Options that affect the output file format are:
Packit Service db44fb
.TP
Packit Service db44fb
.B \-o
Packit Service db44fb
Specify the name of the output file.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-7
Packit Service db44fb
Force output to be compressed with the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 Huffman encoding algorithm (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-8
Packit Service db44fb
Force output to be compressed with the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 4 Huffman encoding.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-u
Packit Service db44fb
Force output to be uncompressed (Group 3 or Group 4).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-5
Packit Service db44fb
Force output to be encoded with the 1-dimensional version of the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 Huffman encoding algorithm.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-6
Packit Service db44fb
Force output to be encoded with the 2-dimensional version of the
Packit Service db44fb
.SM CCITT
Packit Service db44fb
Group 3 Huffman encoding algorithm (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-a
Packit Service db44fb
Force the last bit of each
Packit Service db44fb
.I "End Of Line"
Packit Service db44fb
(\c
Packit Service db44fb
.SM EOL\c
Packit Service db44fb
) code to land on a byte boundary (default). This ``zero padding'' will
Packit Service db44fb
be reflected in the contents of the
Packit Service db44fb
.I Group3Options
Packit Service db44fb
tag of the resultant
Packit Service db44fb
.SM TIFF
Packit Service db44fb
file. This option has effect with Group 3 encoded output only.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-p
Packit Service db44fb
Do not EOL-align output. This option has effect with Group 3 encoded
Packit Service db44fb
output only.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-c
Packit Service db44fb
Generate "classic" Group 3 TIFF format.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-f
Packit Service db44fb
Generate TIFF Class F (TIFF/F) format (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-m
Packit Service db44fb
Force output data to have bits filled from most significant bit (\c
Packit Service db44fb
.SM MSB\c
Packit Service db44fb
) to most least bit (\c
Packit Service db44fb
.SM LSB\c
Packit Service db44fb
).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-l
Packit Service db44fb
Force  output data to have bits filled from least significant bit (\c
Packit Service db44fb
.SM LSB\c
Packit Service db44fb
) to most significant bit (\c
Packit Service db44fb
.SM MSB\c
Packit Service db44fb
) (default).
Packit Service db44fb
.TP
Packit Service db44fb
.B \-r
Packit Service db44fb
Specify the number of rows (scanlines) in each strip of data
Packit Service db44fb
written to the output file.
Packit Service db44fb
By default (or when value
Packit Service db44fb
.B 0
Packit Service db44fb
is specified),
Packit Service db44fb
.I tiffcp
Packit Service db44fb
attempts to set the rows/strip
Packit Service db44fb
that no more than 8 kilobytes of data appear in a strip (with except of G3/G4
Packit Service db44fb
compression schemes). If you specify special value
Packit Service db44fb
.B \-1
Packit Service db44fb
it will results in infinite number of the rows per strip. The entire image
Packit Service db44fb
will be the one strip in that case. This is default in case of G3/G4 output
Packit Service db44fb
compression schemes.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-s
Packit Service db44fb
Stretch the input image vertically by writing each input row of
Packit Service db44fb
data twice to the output file.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-v
Packit Service db44fb
Force
Packit Service db44fb
.I fax2tiff
Packit Service db44fb
to print the number of rows of data it retrieved from the input file.
Packit Service db44fb
.TP
Packit Service db44fb
.B \-z
Packit Service db44fb
Force output to be compressed with the LZW encoding.
Packit Service db44fb
.SH DIAGNOSTICS
Packit Service db44fb
The following warnings and errors come from the decoding
Packit Service db44fb
routines in the library.
Packit Service db44fb
.PP
Packit Service db44fb
.BR "Warning, %s: Premature EOL at scanline %d (x %d).\en" .
Packit Service db44fb
The input data had a row that was shorter than the expected width.
Packit Service db44fb
The row is padded with white.
Packit Service db44fb
.PP
Packit Service db44fb
.BR "%s: Premature EOF at scanline %d (x %d).\en" .
Packit Service db44fb
The decoder ran out of data in the middle of a scanline.
Packit Service db44fb
The resultant row is padded with white.
Packit Service db44fb
.PP
Packit Service db44fb
.BR "%s: Bad code word at row %d, x %d\en" .
Packit Service db44fb
An invalid Group 3 
Packit Service db44fb
.I code
Packit Service db44fb
was encountered while decoding the input file. 
Packit Service db44fb
The row number and horizontal position is given.
Packit Service db44fb
The remainder of the input row is discarded, while
Packit Service db44fb
the corresponding output row is padded with white.
Packit Service db44fb
.PP
Packit Service db44fb
.BR "%s: Bad 2D code word at scanline %d.\en" .
Packit Service db44fb
An invalid Group 4 or 2D Group 3
Packit Service db44fb
.I code
Packit Service db44fb
was encountered while decoding the input file. 
Packit Service db44fb
The row number and horizontal position is given.
Packit Service db44fb
The remainder of the input row is discarded, while
Packit Service db44fb
the corresponding output row is padded with white.
Packit Service db44fb
.SH BUGS
Packit Service db44fb
Input data are assumed to have a a ``top left'' orientation;
Packit Service db44fb
it should be possible to override this assumption
Packit Service db44fb
from the command line.
Packit Service db44fb
.SH "SEE ALSO"
Packit Service db44fb
.BR "\s-1CCITT\s+1 Recommendation T.4"
Packit Service db44fb
(Standardization of Group 3 Facsimile Apparatus for Document Transmission).
Packit Service db44fb
.PP
Packit Service db44fb
.BR "The Spirit of TIFF Class F",
Packit Service db44fb
an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies.
Packit Service db44fb
.PP
Packit Service db44fb
.BR tiffinfo (1),
Packit Service db44fb
.BR tiffdither (1),
Packit Service db44fb
.BR tiffgt (1),
Packit Service db44fb
.BR libtiff (3)
Packit Service db44fb
.PP
Packit Service db44fb
Libtiff library home page:
Packit Service db44fb
.BR http://www.remotesensing.org/libtiff/