mirror of https://github.com/CrimsonTome/tldr.git
fstopgm, lispmtopgm, pgmtofs, pgmtolispm, pgmtoppm, pnmalias: add pages (#12198)
parent
a47af264de
commit
7133769734
|
@ -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}}`
|
|
@ -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}}`
|
|
@ -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}}`
|
|
@ -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}}`
|
|
@ -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}}`
|
|
@ -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}}`
|
Loading…
Reference in New Issue