mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 10:59:20 +00:00
Update cheatsheets
This commit is contained in:
18
pbmmask
Normal file
18
pbmmask
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
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 -expand {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
||||
Reference in New Issue
Block a user