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,pnmtoddifwrites 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
- debian trixie: netpbm 2:11.10.02-1 Β· 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