diff --git a/pages/common/pnmquant.md b/pages/common/pnmquant.md index 3eb30a4442..70fd8e9440 100644 --- a/pages/common/pnmquant.md +++ b/pages/common/pnmquant.md @@ -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: . - Generate an image using only `n_colors` or less colors as close as possible to the input image: diff --git a/pages/common/pnmquantall.md b/pages/common/pnmquantall.md new file mode 100644 index 0000000000..5ddb949bae --- /dev/null +++ b/pages/common/pnmquantall.md @@ -0,0 +1,13 @@ +# pnmquantall + +> Run `pnmquant` on multiple files at once such that they share a common colormap. +> See also: `pnmquant`. +> More information: . + +- 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 ...}}` diff --git a/pages/common/ppmquantall.md b/pages/common/ppmquantall.md new file mode 100644 index 0000000000..edf3f485fe --- /dev/null +++ b/pages/common/ppmquantall.md @@ -0,0 +1,8 @@ +# ppmquantall + +> This command is superseded by `pnmquantall`. +> More information: . + +- View documentation for the current command: + +`tldr pnmquantall`