PNMTOXWD(1)
π PNMTOXWD(1) β the "Pnmtoxwd User Manual" glow-up β¨
okay bestie, welcome to the General Commands Manual corner of the group chat π today we're learning about pnmtoxwd, and honestly? she's giving quiet-legend energy.
πΈ NAME πΈ
pnmtoxwd β convert a PNM into an X11 window dump π¦
like, she takes your cute little PNM pic and turns it into a whole X11 window dump. iconic behavior tbh.
β¨ SYNOPSIS β¨
pnmtoxwd
[-pseudodepth n]
[-directcolor]
[pnmfile]
no cap, that's the whole vibe. pnmfile is optional, the flags are optional, she's low-maintenance like that π
π DESCRIPTION π
First things first: this program is part of Netpbm(1). she didn't come alone, she came with the whole fam π«Ά
So here's the tea: pnmtoxwd reads a PNM image as input and produces an X11 window dump as output. And you can display that output with xwud. yes, that's a real command, no I'm not joking, go look at SEE ALSO π
Now, the β¨default behaviorβ¨ β she's picky in a cute way:
- Normally,
pnmtoxwdproduces a StaticGray dump file for PBM and PGM files. - For PPM, she writes a PseudoColor dump file if there are up to 256 colors in the input.
- ...and a DirectColor dump file otherwise. periodt.
Okay now the nerdy-but-important part π₯ In an X11 window dump file, various integers can be represented in either big endian (most significant byte first) or little endian code.
β οΈ bestie listen: the ones generated by pnmtoxwd are always big endian. she does not do little endian. she said pick a lane and she picked hers π
π OPTIONS π
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pnmtoxwd recognizes the following command line options:
-directcolorβ Output in DirectColor format. that's it. that's the whole flag. she's straightforward like that β¨-pseudodepth1-16 β Set the depth of PseudoColor dump in bits. Values between 1 to 16 are accepted. Default is 8 (for a maximum of 256 colors.) so like, you got range, use it π¦
π SEE ALSO π
xwdtopnm(1)pnm(1)xwud
go read those too, iykyk π
π AUTHOR π
Copyright (C) 1989, 1991 by Jef Poskanzer. yeah, the original legend. respect the name π«‘π
π§ 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/pnmtoxwd.html
and that's the whole page bestie!! π no notes, she ate π
netpbm documentation Β· 24 September 1991 Β· Pnmtoxwd User Manual(1) β okay mwah, go convert something, ily, bye π¦πβ¨
π¦ 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