Files
cheatsheet-tldr/tldr/pnmmargin
2025-04-02 00:19:10 +00:00

18 lines
464 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`