pambackground, pamstretch-gen, pamstretch, pbmclean, pbmmask, pbmpage, pbmpscale: add pages (#12237)
* pambackground, pamstretch-gen, pamstretch, pbmclean, pbmmask, pbmpage, pbmpscale: add pages
* add missing linefeed
* Update pages/common/pamstretch.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Apply suggestions from code review
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
---------
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-02-12 20:50:56 +01: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-01 06:42:14 +03:00
|
|
|
`pbmmask {{[-r|-expand]}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|