HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pnmmargin — Add a border to a PNM image. More information: <https://netpbm.sourceforge.net/doc/pnmmargin.html>.

Submitted by: @import:tldr-pages··
0
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.