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

pull/23/head
Juri Dispan 2024-02-06 16:41:26 +01:00 committed by GitHub
parent a47af264de
commit 7133769734
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 68 additions and 0 deletions

9
pages/common/fstopgm.md Normal file
View File

@ -0,0 +1,9 @@
# fstopgm
> Convert a Usenix FaceSaver file into a PGM image.
> See also: `pgmtofs`.
> More information: <https://netpbm.sourceforge.net/doc/fstopgm.html>.
- Convert the specified Usenix FaceSaver file into a PGM image:
`fstopgm {{path/to/input.fs}} > {{path/to/output.pgm}}`

View File

@ -0,0 +1,9 @@
# lispmtopgm
> Convert a Lisp Machine bitmap into a PGM image.
> See also: `pgmtolispm`.
> More information: <https://netpbm.sourceforge.net/doc/lispmtopgm.html>.
- Convert the specified Lisp Machine bitmap file into a PGM image:
`lispmtopgm {{path/to/input.lispm}} > {{path/to/output.pgm}}`

9
pages/common/pgmtofs.md Normal file
View File

@ -0,0 +1,9 @@
# pgmtofs
> Convert a PGM image to Usenix FaceSaver format.
> See also: `fstopgm`.
> More information: <https://netpbm.sourceforge.net/doc/pgmtofs.html>.
- Convert the specified PGM image to Usenix FaceSave format:
`pgmtofs {{path/to/input.pgm}} > {{path/to/output.fs}}`

View File

@ -0,0 +1,9 @@
# pgmtolispm
> Convert a PGM image to Lisp Machine format.
> See also: `lispmtopgm`.
> More information: <https://netpbm.sourceforge.net/doc/pgmtolispm.html>.
- Convert the specified PGM image to Lisp Machine format:
`pgmtolispm {{path/to/input.pgm}} > {{path/to/output.lispm}}`

12
pages/common/pgmtoppm.md Normal file
View File

@ -0,0 +1,12 @@
# pgmtoppm
> Colorize a PGM image.
> More information: <https://netpbm.sourceforge.net/doc/pgmtoppm.html>.
- Map all greyscale values of the input image to all colors between the two specified colors:
`pgmtoppm -black {{red}} --white {{blue}} {{path/to/input.pgm}} > {{path/to/output.ppm}}`
- Map all greyscale values of the input image to colors according to the specified colormap:
`pgmtoppm -map {{path/to/colormap.ppm}} {{path/to/input.pgm}} > {{path/to/output.ppm}}`

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