pbm2g3(1)
β¨ pbm2g3 β¨
okay bestie, welcome to the mgetty+sendfax manual π this is the page for pbm2g3(1), and honestly? it's giving tiny but mighty π«Ά
πΈ NAME πΈ
pbm2g3 β convert portable bitmaps (PBM) into G3 fax files π
π SYNOPSIS π
pbm2g3 [-r] [-w<pagewidth>] [-h<blanklines>] [-d] [-a] [pbmfile]
π¦ DESCRIPTION π¦
so basically it reads a portable bitmap as input, and converts it into a G3 fax file on stdout β¨ like, that's the whole job. and the file it spits out? perfect for faxing with sendfax(8), or for queueing it up for faxing with faxspool(1) β provided it gets a .g3 suffix, okay, don't forget that part or it's gonna be a whole situation π
also fun fact: faxspool(1) uses pbm2g3(1) internally to convert various bitmap formats into fax g3 format π so yeah, she's the backbone. the main character, lowkey.
π OPTIONS π
-aβ byte-aligns the end-of-line codes, inserting padding bits as necessary. lil bits of padding, as a treat π-w <page width>β sets the width of the resulting G3 page. default is1728. now listen: if you wanna be able to fax it withsendfax, do not use anything else, fr fr. for other fax programs,2048,2432,864and1216may be useful. for other purposes? use what you like bestie, live your truth π
if you set it to 0, the width of the pbm file will be used. iconic behaviour honestly.
-h <blank lines>β specifies the number of blank linespbm2g3should prepend to each page. default is0.
if you want to produce identical output as pbmplus' pbm2g3 program (with my patch! β¨) does, use -h 4.
-rβ reverse the bit order in the bytes. flipping it, turning it, slaying it π-dβ will one day makepbm2g3prepend a digifax header to the page. one day. someday. not today bestie π
π REFERENCES π
the standard for Group 3 fax is defined in CCITT Recommendation T.4 π no cap, that's the source of truth.
π BUGS π
- the
-doption isn't implemented yet. she's aspirational. she's a vision board option π«Ά - if a raw pbm file is converted, and the width of the g3 file is smaller than the width of the pbm file, the former is rounded up to the next multiple of
8. just so you know. math is math π§
π SEE ALSO π
π AUTHOR π
pbm2g3 is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>. it's similar to the pbmtog3 program in Jef Poskanzers pbmplus package, but it's a complete re-write. no code is copied. periodt. π
okay that's the whole page, bestie!! this came from the mgetty+sendfax manual, written by greenie on 27 Oct 93 β vintage, but make it slay πβ¨π
π¦ where this page comes from
- debian bookworm: mgetty-fax 1.2.1-1.2
- debian trixie: mgetty-fax 1.2.1-2
- fedora 43: mgetty-sendfax 1.2.1-26.fc43 Β· GPL-2.0-or-later
- fedora 44: mgetty-sendfax 1.2.1-27.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: g3utils 1.2.1-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: g3utils 1.2.1-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: g3utils 1.2.1-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: g3utils 1.2.1-bp160.1.13 Β· GPL-2.0-or-later
- ubuntu jammy: mgetty-fax 1.2.1-1.1
- ubuntu noble: mgetty-fax 1.2.1-1.2
- ubuntu questing: mgetty-fax 1.2.1-3
- ubuntu resolute: mgetty-fax 1.2.1-5
- ubuntu stonking: mgetty-fax 1.2.1-8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms