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

pbmreduce — Proportionally reduce a PBM image. See also: `pamenlarge`, `pamditherbw`. More information: <https:/

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

Problem

How to use the pbmreduce command: Proportionally reduce a PBM image. See also: pamenlarge, pamditherbw. More information: <https://netpbm.sourceforge.net/doc/pbmreduce.html>.

Solution

pbmreduce — Proportionally reduce a PBM image. See also: pamenlarge, pamditherbw. More information: <https://netpbm.sourceforge.net/doc/pbmreduce.html>.

Reduce the specified image by the specified factor:
pbmreduce {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}


Use simple thresholding when reducing:
pbmreduce {{[-t|-threshold]}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}


Use the specified threshold for all quantizations:
pbmreduce {{[-va|-value]}} {{0.6}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}

Code Snippets

Reduce the specified image by the specified factor

pbmreduce {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}

Use simple thresholding when reducing

pbmreduce {{[-t|-threshold]}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}

Use the specified threshold for all quantizations

pbmreduce {{[-va|-value]}} {{0.6}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}

Context

tldr-pages: common/pbmreduce

Revisions (0)

No revisions yet.