roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
<meta content="groff -Thtml, see www.gnu.org" name="generator">
roentgen b75cab
<meta content="text/css" name="Content-Style">
roentgen b75cab
<title>FAX2TIFF</title>
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

FAX2TIFF

roentgen b75cab
NAME
roentgen b75cab
SYNOPSIS
roentgen b75cab
DESCRIPTION
roentgen b75cab
OPTIONS
roentgen b75cab
DIAGNOSTICS
roentgen b75cab
BUGS
roentgen b75cab
SEE ALSO
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab

NAME

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

fax2tiff − create a <small>TIFF</small> Class F fax

roentgen b75cab
file from raw fax data

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SYNOPSIS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

fax2tiff [ options ] [ −o

roentgen b75cab
output.tif ] input.raw

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DESCRIPTION

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Fax2tiff creates a <small>TIFF</small> file

roentgen b75cab
containing <small>CCITT</small> Group 3 or Group 4 encoded
roentgen b75cab
data from one or more files containing
roentgen b75cab
‘‘raw’’ Group 3 or Group 4 encoded
roentgen b75cab
data (typically obtained directly from a fax modem). By
roentgen b75cab
default, each row of data in the resultant
roentgen b75cab
<small>TIFF</small> file is 1-dimensionally encoded and
roentgen b75cab
padded or truncated to 1728 pixels, as needed. The resultant
roentgen b75cab
image is a set of low resolution (98 lines/inch) or medium
roentgen b75cab
resolution (196 lines/inch) pages, each of which is a single
roentgen b75cab
strip of data. The generated file conforms to the
roentgen b75cab
<small>TIFF</small> Class F ( <small>FAX</small> )
roentgen b75cab
specification for storing facsimile data. This means, in
roentgen b75cab
particular, that each page of the data does not
roentgen b75cab
include the trailing return to control (
roentgen b75cab
<small>RTC</small> ) code; as required for transmission by
roentgen b75cab
the <small>CCITT</small> Group 3 specifications. The old,
roentgen b75cab
‘‘classic’’, format is created if
roentgen b75cab
the −c option is used. (The Class F format can
roentgen b75cab
also be requested with the −f option.)

roentgen b75cab
roentgen b75cab

The default name of the output image is fax.tif;

roentgen b75cab
this can be changed with the −o option. Each
roentgen b75cab
input file is assumed to be a separate page of facsimile
roentgen b75cab
data from the same document. The order in which input files
roentgen b75cab
are specified on the command line is the order in which the
roentgen b75cab
resultant pages appear in the output file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

OPTIONS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Options that affect the interpretation of input data

roentgen b75cab
are:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−3

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is <small>CCITT</small> Group 3

roentgen b75cab
encoded (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−4

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is <small>CCITT</small> Group 4

roentgen b75cab
encoded.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−U

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is uncompressed (Group 3 or Group

roentgen b75cab
4).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−1

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is encoded with the 1-dimensional

roentgen b75cab
version of the <small>CCITT</small> Group 3 Huffman encoding
roentgen b75cab
algorithm (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−2

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is 2-dimensional version of the

roentgen b75cab
<small>CCITT</small> Group 3 Huffman encoding algorithm.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−P

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is not EOL-aligned (default).

roentgen b75cab
This option has effect with Group 3 encoded input only.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−A

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data is EOL-aligned. This option has effect

roentgen b75cab
with Group 3 encoded input only.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−M

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Treat input data as having bits filled from most

roentgen b75cab
significant bit ( <small>MSB</small> ) to most least bit (
roentgen b75cab
<small>LSB</small> ).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−L

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Treat input data as having bits filled from least

roentgen b75cab
significant bit ( <small>LSB</small> ) to most significant
roentgen b75cab
bit ( <small>MSB</small> ) (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−B

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data was encoded with black as 0 and white

roentgen b75cab
as 1.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−W

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Assume input data was encoded with black as 1 and white

roentgen b75cab
as 0 (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−R

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the vertical resolution, in lines/inch, of the

roentgen b75cab
input images. By default input are assumed to have a
roentgen b75cab
vertical resolution of 196 lines/inch. If images are low
roentgen b75cab
resolution facsimile, a value of 98 lines/inch should be
roentgen b75cab
specified.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−X

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the width, in pixels, of the input images. By

roentgen b75cab
default input are assumed to have a width of 1728
roentgen b75cab
pixels.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Options that affect the output file format are:

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="5" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−o

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the name of the output file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−7

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be compressed with the

roentgen b75cab
<small>CCITT</small> Group 3 Huffman encoding algorithm
roentgen b75cab
(default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−8

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be compressed with the

roentgen b75cab
<small>CCITT</small> Group 4 Huffman encoding.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−u

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be uncompressed (Group 3 or Group

roentgen b75cab
4).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−5

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be encoded with the 1-dimensional

roentgen b75cab
version of the <small>CCITT</small> Group 3 Huffman encoding
roentgen b75cab
algorithm.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−6

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be encoded with the 2-dimensional

roentgen b75cab
version of the <small>CCITT</small> Group 3 Huffman encoding
roentgen b75cab
algorithm (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−a

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force the last bit of each End Of Line (

roentgen b75cab
<small>EOL</small> ) code to land on a byte boundary
roentgen b75cab
(default). This ‘‘zero padding’’
roentgen b75cab
will be reflected in the contents of the
roentgen b75cab
Group3Options tag of the resultant
roentgen b75cab
<small>TIFF</small> file. This option has effect with Group
roentgen b75cab
3 encoded output only.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−p

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Do not EOL-align output. This option has effect with

roentgen b75cab
Group 3 encoded output only.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−c

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate "classic" Group 3 TIFF format.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−f

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Generate TIFF Class F (TIFF/F) format (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−m

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output data to have bits filled from most

roentgen b75cab
significant bit ( <small>MSB</small> ) to most least bit (
roentgen b75cab
<small>LSB</small> ).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−l

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output data to have bits filled from least

roentgen b75cab
significant bit ( <small>LSB</small> ) to most significant
roentgen b75cab
bit ( <small>MSB</small> ) (default).

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−r

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Specify the number of rows (scanlines) in each strip of

roentgen b75cab
data written to the output file. By default (or when value
roentgen b75cab
0 is specified), tiffcp attempts to set the
roentgen b75cab
rows/strip that no more than 8 kilobytes of data appear in a
roentgen b75cab
strip (with except of G3/G4 compression schemes). If you
roentgen b75cab
specify special value −1 it will results in
roentgen b75cab
infinite number of the rows per strip. The entire image will
roentgen b75cab
be the one strip in that case. This is default in case of
roentgen b75cab
G3/G4 output compression schemes.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−s

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Stretch the input image vertically by writing each input

roentgen b75cab
row of data twice to the output file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−v

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force fax2tiff to print the number of rows of

roentgen b75cab
data it retrieved from the input file.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

−z

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Force output to be compressed with the LZW encoding.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

DIAGNOSTICS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

The following warnings and errors come from the decoding

roentgen b75cab
routines in the library.

roentgen b75cab
roentgen b75cab

Warning, %s: Premature EOL at scanline %d (x

roentgen b75cab
%d).\n. The input data had a row that was shorter than
roentgen b75cab
the expected width. The row is padded with white.

roentgen b75cab
roentgen b75cab

%s: Premature EOF at scanline %d (x %d).\n. The

roentgen b75cab
decoder ran out of data in the middle of a scanline. The
roentgen b75cab
resultant row is padded with white.

roentgen b75cab
roentgen b75cab

%s: Bad code word at row %d, x %d\n. An invalid

roentgen b75cab
Group 3 code was encountered while decoding the input
roentgen b75cab
file. The row number and horizontal position is given. The
roentgen b75cab
remainder of the input row is discarded, while the
roentgen b75cab
corresponding output row is padded with white.

roentgen b75cab
roentgen b75cab

%s: Bad 2D code word at scanline %d.\n. An invalid

roentgen b75cab
Group 4 or 2D Group 3 code was encountered while
roentgen b75cab
decoding the input file. The row number and horizontal
roentgen b75cab
position is given. The remainder of the input row is
roentgen b75cab
discarded, while the corresponding output row is padded with
roentgen b75cab
white.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

BUGS

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

Input data are assumed to have a a ‘‘top

roentgen b75cab
left’’ orientation; it should be possible to
roentgen b75cab
override this assumption from the command line.

roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

SEE ALSO

roentgen b75cab
roentgen b75cab
roentgen b75cab
       cols="2" cellspacing="0" cellpadding="0">
roentgen b75cab
roentgen b75cab
roentgen b75cab
roentgen b75cab

<small>CCITT</small> Recommendation T.4

roentgen b75cab
(Standardization of Group 3 Facsimile Apparatus for Document
roentgen b75cab
Transmission).

roentgen b75cab
roentgen b75cab

The Spirit of TIFF Class F, an appendix to the

roentgen b75cab
TIFF 5.0 specification prepared by Cygnet Technologies.

roentgen b75cab
roentgen b75cab

tiffinfo(1), tiffdither(1),

roentgen b75cab
tiffgt(1), libtiff(3)

roentgen b75cab
roentgen b75cab

Libtiff library home page:

roentgen b75cab
http://www.remotesensing.org/libtiff/

roentgen b75cab
roentgen b75cab
roentgen b75cab

roentgen b75cab
roentgen b75cab