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

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