1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:22:06 +02:00
tldr/pages/common/pbmmask.md
Antti Savolainen e7e3c0b668 batch4
2025-03-28 18:48:45 +02:00

396 B

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}}