1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-29 11:53:45 +02:00
tldr/pages/common/pnmquantall.md
Antti Savolainen e1d44b5166 batch3
2025-03-28 18:12:09 +02:00

13 lines
588 B
Markdown

# 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 {{[-e|-ext]}} {{extension}} {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}`