snippetbashTip
pnmmargin — Add a border to a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmmargin.html>.
Viewed 0 times
bordercommandcliimagemoreaddpnmmarginpnm
Problem
How to use the
pnmmargin command: Add a border to a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmmargin.html>.Solution
pnmmargin — Add a border to a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmmargin.html>.Add a border of the specified size to a PNM image:
pnmmargin {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Specify the color of the border:
pnmmargin {{[-c|-color]}} {{color}} {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Code Snippets
Add a border of the specified size to a PNM image
pnmmargin {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Specify the color of the border
pnmmargin {{[-c|-color]}} {{color}} {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}Context
tldr-pages: common/pnmmargin
Revisions (0)
No revisions yet.