mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
19 lines
489 B
Plaintext
19 lines
489 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pbmmask
|
|
|
|
> Create a mask bitmap from a regular bitmap.
|
|
> See also: `pambackground`.
|
|
> More information: <https://netpbm.sourceforge.net/doc/pbmmask.html>.
|
|
|
|
- Create a mask bitmap separating background from foreground:
|
|
|
|
`pbmmask {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
|
|
|
- Expand the generated mask by one pixel:
|
|
|
|
`pbmmask {{[-r|-expand]}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|