PNMTOXWD(1)

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

πŸ’… 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, pnmtoxwd produces 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 ✨
  • -pseudodepth 1-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 πŸ‘‘

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