PNMMARGIN(1)
π PNMMARGIN(1) β the Pnmmargin User Manual, bestie edition π
okay so. welcome to pnmmargin, a certified Netpbm(1) girlie. she does ONE thing and she does it adorably: she puts a border around your PNM image. that's it. that's the whole personality. β¨
πΈ NAME πΈ
pnmmargin β add borders to a PNM image
π SYNOPSIS π
pnmmargin [-white|-black|-color colorspec] size [pnmfile]
π¦ DESCRIPTION π¦
no cap, this program is part of Netpbm(1) β like, the whole fam. and what she does is genuinely so simple it's iconic:
pnmmargin adds a border around a PNM image. periodt. π
π ARGUMENTS π
pnmfileβ this is the name of the input file, bestie. and if you don't specify it? she's not gonna be dramatic about it, she just reads the input image from her Standard Input instead. lowkey flexible of her. π«Ά
β¨ OPTIONS β¨
so besides the options that are common to every single program based on libnetpbm (most notably -plain, pls go see Common Options), pnmmargin recognizes these:
setting the border color is YOUR call, and you've got -white, -black, and -color for that. if you don't specify a color at all, the program just... makes a guess. π (she's guessing. let her guess.)
-whiteand-blackβ okay so these are the same as-color=whiteand-color=blackrespectively, EXCEPT that the-color=versions fail if you don't have a color dictionary set up in your environment. so fr fr,-whiteand-blackare really more like-color=rgbi:0/0/0and-color=rgbi:1/1/1. iykyk. π-colorβ the value you pass here is like the argument of thepnm_parsecolor()library routine.-plainβ this common option was implemented beginning with Netpbm version 10.40 (September 2007). vintage-ish. nostalgic. π-quietβ the-quietcommon option is not implemented. she simply does not do that one. no notes. π
π NOTES π
okay so let's get into the lore, because there are cousins here:
pnmpaddoes essentially the same thing, but she gives you more control over the individual margins β and she only does black and white margins. so like, trade-offs, babe. π- wanna remove a border of a specified size from an image? use
pamcut.pnmcropalso removes borders, but she determines by herself what is border and what is subject. main character energy tbh. π - and if you want to make the image a certain required size, adding borders or cropping as necessary β
pamcutmay be what you want. she's the one for that job. π§
π SEE ALSO π
pamcut(1)pnmcrop(1)pamcat(1)pnmpad(1)pnm(1)
π AUTHOR π
Copyright (C) 1991 by Jef Poskanzer. we stan a legend. π
π 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/pnmmargin.html
π«Ά ok that's the whole page, bestie. go add a border. go be cute. go slay. π¦
netpbm documentation Β· 26 December 2025 Β· Pnmmargin User Manual(1) β mwah, thanks for reading, ily, bye!! πβ¨π
π¦ where this page comes from
- 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