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

603 B

pbmclean

Clean up a PBM image by erasing isolated black and white pixels. More information: https://netpbm.sourceforge.net/doc/pbmclean.html.

  • Clean up a PBM image by erasing isolated black and white pixels:

pbmclean {{path/to/image.pbm}} > {{path/to/output.pbm}}

  • Clean up only black/white pixels:

pbmclean -{{black|white}} {{path/to/image.pbm}} > {{path/to/output.pbm}}

  • Specify the minimum number of neighbouring pixels of the same color in order for a pixel not to be considered isolated:

pbmclean {{[-m|-minneighbours]}} {{3}} {{path/to/image.pbm}} > {{path/to/output.pbm}}