FAX2TIFF(1)
π FAX2TIFF(1) π β the LibTIFF fax glow-up
okay so bestie, welcome to the fax2tiff manual, straight out of the LibTIFF universe. grab a snack, we're decoding fax data π
π NAME π
fax2tiff β create a TIFF Class F fax file from raw fax data. that's it, that's the whole personality β¨
πΌ SYNOPSIS πΌ
fax2tiff [ options ] [ -o output.tif ] input.raw
π¦ DESCRIPTION π¦
So fax2tiff creates a TIFF file containing CCITT Group 3 or Group 4 encoded data, and it builds it out of one or more files containing "raw" Group 3 or Group 4 encoded data β the kind you'd typically get straight off a fax modem. iconic, honestly π«Ά
By default, each row of data in the resultant TIFF file is 1-dimensionally encoded and padded or truncated to 1728 pixels, as needed. The resultant image is a set of low resolution (98 lines/inch) or medium resolution (196 lines/inch) pages, each of which is a single strip of data. main character energy fr fr.
The generated file conforms to the TIFF Class F (FAX) specification for storing facsimile data. And this means, in particular, that each page of the data does not include the trailing "return to control" (RTC) code β as required for transmission by the CCITT Group 3 specifications. so like, that's on purpose, don't come for it π
The old, "classic", format is created if the -c option is used. (And the Class F format can also be requested with the -f option, iykyk.)
The default name of the output image is fax.tif; this can be changed with the -o option. Each input file is assumed to be a separate page of facsimile data from the same document, and the order in which input files are specified on the command line is the order in which the resultant pages appear in the output file. chronological, as she should be β
π― OPTIONS π―
πΈ Options that affect the interpretation of input data are:
-3β Assume input data is CCITT Group 3 encoded (default). β¨-4β Assume input data is CCITT Group 4 encoded.-Uβ Assume input data is uncompressed (Group 3 or Group 4).-1β Assume input data is encoded with the 1-dimensional version of the CCITT Group 3 Huffman encoding algorithm (default).-2β Assume input data is 2-dimensional version of the CCITT Group 3 Huffman encoding algorithm.-Pβ Assume input data is not EOL-aligned (default). This option has effect with Group 3 encoded input only.-Aβ Assume input data is EOL-aligned. This option has effect with Group 3 encoded input only.-Mβ Treat input data as having bits filled from most significant bit (MSB) to most least bit (LSB).-Lβ Treat input data as having bits filled from least significant bit (LSB) to most significant bit (MSB) (default).-Bβ Assume input data was encoded with black as0and white as1.-Wβ Assume input data was encoded with black as1and white as0(default).-Rβ Specify the vertical resolution, in lines/inch, of the input images. By default input are assumed to have a vertical resolution of 196 lines/inch. If images are low resolution facsimile, a value of 98 lines/inch should be specified.-Xβ Specify the width, in pixels, of the input images. By default input are assumed to have a width of 1728 pixels.
π Options that affect the output file format are:
-oβ Specify the name of the output file.-7β Force output to be compressed with the CCITT Group 3 Huffman encoding algorithm (default).-8β Force output to be compressed with the CCITT Group 4 Huffman encoding.-uβ Force output to be uncompressed (Group 3 or Group 4).-5β Force output to be encoded with the 1-dimensional version of the CCITT Group 3 Huffman encoding algorithm.-6β Force output to be encoded with the 2-dimensional version of the CCITT Group 3 Huffman encoding algorithm (default).-aβ Force the last bit of each "End Of Line" (EOL) code to land on a byte boundary (default). This "zero padding" will be reflected in the contents of the Group3Options tag of the resultant TIFF file. This option has effect with Group 3 encoded output only.-pβ Do not EOL-align output. This option has effect with Group 3 encoded output only.-cβ Generate "classic" Group 3 TIFF format.-fβ Generate TIFF Class F (TIFF/F) format (default).-mβ Force output data to have bits filled from most significant bit (MSB) to most least bit (LSB).-lβ Force output data to have bits filled from least significant bit (LSB) to most significant bit (MSB) (default).-rβ Specify the number of rows (scanlines) in each strip of data written to the output file. By default (or when value0is specified),tiffcpattempts to set the rows/strip that no more than 8 kilobytes of data appear in a strip (with except of G3/G4 compression schemes). If you specify special value-1it will results in infinite number of the rows per strip. The entire image will be the one strip in that case. This is default in case of G3/G4 output compression schemes. π-sβ Stretch the input image vertically by writing each input row of data twice to the output file.-vβ Forcefax2tiffto print the number of rows of data it retrieved from the input file.-zβ Force output to be compressed with the LZW encoding.
π¨ DIAGNOSTICS π¨
The following warnings and errors come from the decoding routines in the library. she's dramatic but she's honest π
"Warning, %s: Premature EOL at scanline %d (x %d).en"β The input data had a row that was shorter than the expected width. The row is padded with white."%s: Premature EOF at scanline %d (x %d).en"β The decoder ran out of data in the middle of a scanline. The resultant row is padded with white."%s: Bad code word at row %d, x %den"β An invalid Group 3 code was encountered while decoding the input file. The row number and horizontal position is given. The remainder of the input row is discarded, while the corresponding output row is padded with white."%s: Bad 2D code word at scanline %d.en"β An invalid Group 4 or 2D Group 3 code was encountered while decoding the input file. The row number and horizontal position is given. The remainder of the input row is discarded, while the corresponding output row is padded with white.
π BUGS π
Input data are assumed to have a "top left" orientation; it should be possible to override this assumption from the command line. lowkey a limitation, no cap π
π SEE ALSO π
"CCITT Recommendation T.4"(Standardization of Group 3 Facsimile Apparatus for Document Transmission)."The Spirit of TIFF Class F", an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies.tiffinfo(1),tiffdither(1),tiffgt(1),libtiff(3tiff)
π AUTHOR π
LibTIFF contributors π«Ά
π COPYRIGHT π
1988-2025, LibTIFF contributors
and that's the whole page bestie, you ate π this was LibTIFF 4.7, dated Jun 27, 2026 β go fax something iconic, mwah πβ¨
π¦ where this page comes from
- fedora 43: libtiff-tools 4.7.2-1.fc43
- fedora 43: libtiff-tools 4.7.2-3.fc43 Β· libtiff
- fedora 44: libtiff-tools 4.7.2-1.fc44
- fedora 44: libtiff-tools 4.7.2-3.fc44 Β· libtiff
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms