PGMTOLISPM(1)
π pgmtolispm β NAME, bestie β¨
okay so pgmtolispm β she converts a PGM image to Lisp Machine format. that's it. that's her whole thing. and she's serving it in the General Commands Manual (section 1), if you were wondering where to find her π«Ά
π SYNOPSIS
pgmtolispm
[pgmfile]
like. that's the whole invocation. she takes a [pgmfile] and she goes π
πΈ DESCRIPTION
okay so first things first: this program is part of Netpbm(1). family affair. love that for her.
So what she DOES is: pgmtolispm reads a PGM image as input and produces a Lisp Machine bitmap as output. slay.
and here's the lore, because this is genuinely iconic: this is the file format read by the tv:read-bit-array-file function on TI Explorer and Symbolics lisp machines. vintage. museum-grade. no cap.
Now β plot twist β if you give her a PGM (instead of a PBM), pgmtolispm outputs a multi-plane image. is that useful? honestly? probably not, unless you have a color lisp machine. like. do you, bestie. do you have a color lisp machine. π
and the sad part, the π part: multi-plane bitmaps on lisp machines ARE color, but the lispm image file format does not include a color map, so we have to treat it as a graymap instead. it's giving tragedy. it is unfortunate. that's literally what the manpage says. unfortunate. β¨
β¨ OPTIONS β¨
okay so here's the thing, and don't be mad:
- there are literally no command line options defined specifically for
pgmtolispm. none. zero. she's a minimalist. π
BUT β and this is the important but β she does recognize the options common to all programs based on libnetpbm. (See Common Options.)
that's it. that's the options section. go read the common options, iykyk π¦
π SEE ALSO
lispmtopgm(1)pgm(1)
the first one is literally her in reverse and that's the friend group π
β οΈ LIMITATIONS
okay so here's where you need to pay attention, bestie, because this one actually bites:
- Output width is always rounded up to the nearest multiple of 32. always. no negotiating.
might that not be what you want? sure. but honestly, it probably is what you want β and here's the reason, no cap: arrays which are not modulo 32 cannot be passed to the Lispm BITBLT function, and thus cannot easily be displayed on the screen. so. the rounding is a feature, she's doing you a favor, periodt π
- No color.
that's the whole bullet. no color. devastating. moving on. π
π AUTHOR
Copyright (C) 1991 by Jamie Zawinski and Jef Poskanzer.
legends. absolute icons. we stan π«Ά
π DOCUMENT SOURCE
fun fact about how this page even exists: this manual page was generated by the Netpbm tool makeman from HTML source. the master documentation lives at:
http://netpbm.sourceforge.net/doc/pgmtolispm.html
that's the source of truth, bestie, go look if you want the deep lore π§
and that's the whole page β¨ β this was the Pgmtolispm User Manual (section 1), delivered to you by netpbm documentation, dated 06 March 1990. she's been serving lisp machine bitmaps since before either of us was born and honestly? main character energy. mwah π
π
π¦ 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