1Fax Formats(1) General Commands Manual Fax Formats(1)
2
3
4
5 This page, part of the Netpbmuser'sguide(1), describes FAX formats in
6 relation to Netpbm facilities.
7
8 The ITU (formerly CCITT) publishes standards for operation of fax
9 machines (the idea is to provide a way to be sure that a fax machine is
10 able to receive a fax sent by another). These standards incidentally
11 specify graphics file formats -- a protocol for representing a visual
12 image in sequences of bits.
13
14 The two relevant standards are called Group 3 (G3) and Group 4 (G4)
15 (Groups 1 and 2 are analog standards no longer in use). Virtually
16 every fax machine in existence conforms at least generally to at least
17 one of these standards.
18
19 The standard for Group 3 fax is defined in ITU Recommendation T.4. In
20 the U.S., that is implemented by EIA standards EIA-465 and EIA-466.
21 These standards cover more than the file format as well, including how
22 to transmit bits over a telephone line and procedures for handling doc‐
23 ument transmissions.
24
25 G3 faxes are 204 dots per inch (dpi) horizontally and 98 dpi (196 dpi
26 optionally, in fine-detail mode) vertically.
27
28 The standards specify three file formats (also called coding methods
29 and compression schemes -- remember the standard doesn't mention com‐
30 puter files; it talks about the format of a stream of bits travelling
31 over a telephone line):
32
33
34
35
36 MH This compresses in one dimension: it compresses individual
37 raster lines but makes no attempt to compress redundancy between
38 lines.
39
40 One dimensional compression is traditionally the best a fax
41 machine could handle because G3 neither assumes error free
42 transmission not retransmits when errors occur, and receiving
43 fax machines traditionally could not afford to buffer much of a
44 page. It's important that when there is an error in a raster
45 line, its impact not spread to many lines after it.
46
47 All Group 3 and Group 4 fax machines must be able to send and
48 receive MH.
49
50 MH is sometimes called 'G3,' but that is a poor name because
51 while the Group 3 standard does specify MH, it has always speci‐
52 fied other formats too.
53
54 MH is sometimes called 'T4' based on the name of the document
55 that specifies it, ITU T.4. But this is a poor name because T.4
56 also specifies MR.
57
58
59
60 MR This compresses in two dimensions, horizontally and vertically.
61
62 MR has always been part of the Group 3 standard, but is optional
63 (a Group 3 fax machine may or may not be able to send and
64 receive it).
65
66
67 MMR This is a more advanced format than the others. It is even more
68 two-dimensional than MR. It is optional in the Group 3 stan‐
69 dard, and didn't even exist in earlier versions of it. It was
70 developed specifically for the Group 4 standard, but then added
71 to an extended Group 3 standard as well.
72
73 MMR is sometimes called Group 4, but that is a poor name because
74 of the fact that it is also part of the current Group 3 stan‐
75 dard.
76
77 MMR is sometimes called 'T6' based on the name of the document
78 that specifies it, ITU T.6.
79
80
81
82 g3topbm converts the MH format to PBM. pbmtog3 converts PBM to MH.
83
84 There is no Netpbm program to convert to or from other fax formats.
85
86
88 The TIFF format is flexible enough to allow lots of different coding
89 methods, within it. There are TIFF subformats for MH, MR, and MMR,
90 among others. These are particularly useful when you receive a fax as
91 a TIFF file.
92
93 tifftopnm recognizes and can convert from any of these.
94
95 pamtotiff can convert to any of these; you use command options to
96 choose which.
97
98
99
100netpbm documentation 03 December 2008 Fax Formats(1)