LISPMTOPGM(1)
π LISPMTOPGM π
okay bestie, so this is lispmtopgm β it's section 1 of the Lispmtopgm User Manual (General Commands Manual, iykyk) and it converts a Lisp Machine bitmap file into a PGM. yes. we're going back in time. it's giving vintage-tech-slay. π
β¨ NAME β¨
lispmtopgm β convert a Lisp Machine bitmap file to PGM π¦
π SYNOPSIS π
lispmtopgm [lispmfile]
πΈ DESCRIPTION πΈ
ok so first things first: this program is part of Netpbm(1). family reunion energy. π«Ά
listpmfile reads a Lisp Machine bitmap as input and produces a PGM image as output. literally that's the whole job, and it does it well fr fr.
so the tea about this file format: it's the one written by the tv:write-bit-array-file function on TI Explorer and Symbolics lisp machines. very specific. very niche. very iconic of them honestly. π
here's the part that lives in my head rent free though β multi-plane bitmaps on lisp machines are color, periodt. BUT. the Lispm image file format does not include a color map, so we have no choice but to treat it as a monochrome image instead and produce PGM. and yeah. that's unfortunate. π we said what we said.
π OPTIONS π
ngl there are no command line options defined specifically for lispmtopgm bestie, sorry to disappoint.
- but β it does recognize the options common to all programs based on libnetpbm. (See Common Options. π)
so you're not fully optionless, you're just borrowing the group chat's options instead of having your own. main character adjacent. β¨
π₯ SEE ALSO π₯
pgmtolispm(1)β the reverse bestie, the other direction π¦pgm(1)β the format we're producing, the moment π
π LIMITATIONS π
buckle up. this is the "we need to talk" section. π«
One. the Lispm bitmap file format is a bit quirky. usually, the image in the file has its width rounded up to the next higher multiple of 32 β but not always. and if the width is not a multiple of 32, we do not deal with it properly. π the small mercy here is that because of the Lispm microcode, such arrays are probably not image data anyway. so like... probably fine? probably. π
Two. also β and this is the messiest part β the Lispm code for saving bitmaps has a bug: if you are writing a bitmap which is not mod32 across, the file may be up to 7 bits too short! π± they round down instead of up, and we do not handle this bug gracefully. no cap. consider yourself warned bestie. π
π AUTHOR π
Copyright (C) 1991 by Jamie Zawinski and Jef Poskanzer. π«Ά legends, honestly.
π DOCUMENT SOURCE π
This manual page was generated by the Netpbm tool makeman from HTML source. the master documentation lives at:
http://netpbm.sourceforge.net/doc/lispmtopgm.html
and that's the whole page bestie, we ate and left no crumbs πβ¨ this was netpbm documentation, dated 06 March 1990, from the Lispmtopgm User Manual(1) β mwah, love u, go convert some ancient bitmap files πππ¦
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms