PBMTOG3(1)

πŸ“¦
version 11.13.03 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Pbmtog3 User Manual πŸ’–

okay bestie, welcome to the Pbmtog3 page from the General Commands Manual section of the Netpbm docs ✨ no cap, this one's a lil niche but it's lowkey iconic.


✨ NAME ✨

pbmtog3 β€” convert a PBM image into a Group 3 MH fax file πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

pbmtog3 [-reversebits] [-nofixedwidth] [-align8|-align16] [pbmfile]

πŸ¦‹ DESCRIPTION πŸ¦‹

So this program is part of Netpbm(1), fr fr. 🌈

pbmtog3 reads a PBM image as input and produces a Group 3 MH fax file as output. That's the whole vibe. In, out, slay. πŸ’–

You can also generate a TIFF file that uses the same encoding inside, with pamtotiff. πŸ‘‘

And jsyk β€” there is no program in Netpbm that generates other fax formats, such as MR and MMR, but pamtotiff can generate TIFF files that use those encodings. So if you're looking for those, it's giving "go ask pamtotiff instead." πŸ™ˆ


πŸ’… OPTIONS πŸ’…

On top of the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pbmtog3 recognizes the following command line options:

  • -reversebits β€” this one flips the bits in every byte of the output, so the least significant bit becomes the most significant bit. Some fax modems expect bits in reverse order, and this compensates for that. πŸŒ€ So if you're getting a whole bunch of "bad code word" messages when you try to read the G3 file (e.g. with g3topbm), try using this option. Note that the output is not G3 when you use this option. 🚨 like, do not come for me, that's just how it is.
  • -nofixedwidth β€” most fax machines expect the image to be 1728 columns wide, so pbmtog3 cuts the output to this width by default. If you want to keep the width of the original image, use this option. 🫢

This option was new in Netpbm 10.6 (July 2002). Before that, pbmtog3 always kept the width of the original image. πŸ•°οΈ

  • -align8
  • -align16 β€” these options say to align output rows to 8-bit or 16-bit boundaries, respectively, by adding padding bits in front of EOL codes. πŸ“

Without these options, pbmtog3 adds no padding and rows may begin and ends anywhere within a byte. (yes, the original says "begins and ends," we're keeping that energy, it's iconic in its own way πŸ’€)

You cannot specify both. pick a lane bestie, not both. πŸ™…β€β™€οΈ

These options were new in Netpbm 10.79 (June 2017). ⭐


πŸ‘€ SEE ALSO πŸ‘€

g3topbm(1), pamtotiff(1), pbm(1), fax formats(1)

iykyk, go read those next. πŸ’œ


πŸ“œ HISTORY πŸ“œ

Before Netpbm 10.79 (June 2017), there was a different program by the same name in Netpbm, which was written by by Paul Haeberli <paul@manray.sgi.com> in 1989 and then modified extensively by others. the lore is real. 😭

Akira Urushibata <afu@wta.att.ne.jp> wrote the current version, with an entirely different algorithm, in April 2017 and contributed his work to the public domain. πŸŽ€ legend behavior.

The current program is backward compatible with the pre-10.79 version. so nothing broke, we love to see it. ✨


πŸ“„ DOCUMENT SOURCE πŸ“„

This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at

http://netpbm.sourceforge.net/doc/pbmtog3.html

okay and that's the whole page bestie, thank you for coming to my TED talk 🫢 this lil cutie is brought to you by the netpbm documentation, dated 20 April 2017, and it lives under the Pbmtog3 User Manual(1) header. mwah πŸ’‹ so glad we read this together, go convert some faxes πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from