HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pnmquantall — Run `pnmquant` on multiple files at once such that they share a common colormap. See also: `pnmquant

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrunfilesmultipleclipnmquantallpnmquantonce

Problem

How to use the pnmquantall command: 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>.

Solution

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 ...}}

Code Snippets

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 ...}}

Context

tldr-pages: common/pnmquantall

Revisions (0)

No revisions yet.