mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 10:54:45 +00:00
Update cheatsheets
This commit is contained in:
14
pnmquant
Normal file
14
pnmquant
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pnmquant
|
||||
|
||||
> 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`.
|
||||
> 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:
|
||||
|
||||
`pnmquant {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.pnm}}`
|
||||
Reference in New Issue
Block a user