mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-10 03:45:27 +02:00
13 lines
396 B
Markdown
13 lines
396 B
Markdown
# 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}}`
|