mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 14:15:26 +02:00
pnmquantall, ppmquantall: add pages; pnmquant: edit page (#12407)
This commit is contained in:
parent
3e24ce7227
commit
b25810c81e
3 changed files with 22 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
> Quantize the colors in a PNM image into a smaller set.
|
||||
> This command is a combination of `pnmcolormap` and `pnmremap` and accepts the union of their options, except `-mapfile`.
|
||||
> See also: `pnmquantall`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmquant.html>.
|
||||
|
||||
- Generate an image using only `n_colors` or less colors as close as possible to the input image:
|
||||
|
|
13
pages/common/pnmquantall.md
Normal file
13
pages/common/pnmquantall.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# pnmquantall
|
||||
|
||||
> Run `pnmquant` on multiple files at once such that they share a common colormap.
|
||||
> See also: `pnmquant`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmquantall.html>.
|
||||
|
||||
- Run `pnmquant` on multiple files with the specified parameters, overwriting the original files:
|
||||
|
||||
`pnmquantall {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}`
|
||||
|
||||
- Save the quantised images to files named the same as the input files, but with the specified extension appended:
|
||||
|
||||
`pnmquantall -ext {{extension}} {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}`
|
8
pages/common/ppmquantall.md
Normal file
8
pages/common/ppmquantall.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
# ppmquantall
|
||||
|
||||
> This command is superseded by `pnmquantall`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmquantall.html>.
|
||||
|
||||
- View documentation for the current command:
|
||||
|
||||
`tldr pnmquantall`
|
Loading…
Add table
Reference in a new issue