PNMTODDIF(1)

πŸ’– pnmtoddif β€” the glow-up your PNM pic deserves πŸ’–

okay bestie, so this is a page from the Pnmtoddif User Manual, section 1 (General Commands Manual), and it's literally about turning your Netpbm pics into DDIF files. no cap. let's get into it ✨


πŸ¦‹ NAME πŸ¦‹

pnmtoddif β€” converts a PNM image into DDIF format. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

pnmtoddif [-resolution x y] [pnmfile [ddiffile]]

πŸŽ€ DESCRIPTION πŸŽ€

so first things first: this program is part of Netpbm(1) πŸ‘‘ you know the family.

pnmtoddif takes a PNM image and converts it into a DDIF image file. simple as that, she just does it.

and here's the breakdown of what she writes, depending on what you hand her:

  • PBM format data (bitmap) β†’ she writes a 1 bit DDIF
  • PGM format data (grayscale) β†’ she writes an 8 bit grayscale DDIF
  • PPM format data (color) β†’ she writes an 8,8,8 bit color DDIF

any DDIF image file she writes is uncompressed, just so you know. and the data plane organization is interleaved by pixel. periodt ✨

okay now here's the part that's lowkey important 🫢 DDIF images carry more than just the number of pixels in the width and height dimension β€” they also carry info about the size the image should have, like the physical space that a pixel occupies. and Netpbm images? they do NOT carry that info, bestie. so you have to supply it yourself externally. not optional, it's just how it is.

the default of 78 dpi has the beneficial property of not causing a resize on most Digital Equipment Corporation color monitors. so like, it just fits. iconic behavior honestly πŸ’œ


✨ OPTIONS ✨

on top of the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pnmtoddif recognizes this one command line option:

  • -resolution x y β€” the horizontal and vertical resolution of the output image, in dots per inch. default is 78 dpi. 🌈

🧚 ARGUMENTS 🧚

  • pnmfile β€” the filename for the image file in pnm format. default is to read from Standard Input.
  • ddiffile β€” the filename for the image file to be created in DDIF format. by default, pnmtoddif writes to Standard Output.

πŸ‘‘ SEE ALSO πŸ‘‘

pnm(1)


πŸ’œ AUTHOR πŸ’œ

Burkhard Neidecker-Lutz, Digital Equipment Corporation, CEC Karlsruhe neideck@nestvx.enet.dec.com


πŸ“œ 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/pnmtoddif.html

fr fr take a moment to appreciate that the master docs are right there if you ever need them πŸ™ˆ

and that's the whole thing bestie πŸ“ this was netpbm documentation, dated 2003, from the Pnmtoddif User Manual, section 1. slay, go convert something πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from