CmdID / Commands
Create a mask bitmap from a regular bitmap. tldr-pages
On several platforms
Opens CmdID with your command. It is read in your browser and sent nowhere.
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
pambackground