fstopgm, lispmtopgm, pgmtofs, pgmtolispm, pgmtoppm, pnmalias: add pages (#12198)

This commit is contained in:
Juri Dispan
2024-02-06 16:41:26 +01:00
committed by GitHub
parent a47af264de
commit 7133769734
6 changed files with 68 additions and 0 deletions

20
pages/common/pnmalias.md Normal file
View File

@@ -0,0 +1,20 @@
# pnmalias
> Apply antialiasing onto a PNM image.
> More information: <https://netpbm.sourceforge.net/doc/pnmalias.html>.
- Perform antialiasing on a PNM image, taking black pixels as background and white pixels as foreground:
`pnmalias {{path/to/input.pnm}} > {{path/to/output.ppm}}`
- Explicitly specify the background and foreground color:
`pnmalias -bcolor {{background_color}} -fcolor {{foreground_color}} {{path/to/input.pnm}} > {{path/to/output.ppm}}`
- Apply altialiasing to foreground pixels only:
`pnmalias -fonly {{path/to/input.pnm}} > {{path/to/output.ppm}}`
- Apply antialiasing to all surrounding pixels of background pixels:
`pnmalias -balias {{path/to/input.pnm}} > {{path/to/output.ppm}}`