commands.sh

pbmmask

all

Create a mask bitmap from a regular bitmap. See also: `pambackground`.

More info →

Options (1)

-rboolean

Expand the generated mask by one pixel

Example: pbmmask {{[-r|-expand]}} {{path/to/image.pbm}} > {{path/to/output.pbm}}

Examples (2)

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
made by @shridhargupta | data from tldr-pages