2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`pbmmask {{[-r|-expand]}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|