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

pamdepth — Reduce the depth (i.e. color resolution) in an image. More information: <https://netpbm.sourceforge.

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

Problem

How to use the pamdepth command: Reduce the depth (i.e. color resolution) in an image. More information: <https://netpbm.sourceforge.net/doc/pamdepth.html>.

Solution

pamdepth — Reduce the depth (i.e. color resolution) in an image. More information: <https://netpbm.sourceforge.net/doc/pamdepth.html>.

Read a PBM image, set its maxval and save it to a file:
pamdepth {{maxval}} {{path/to/image.pbm}} > {{path/to/file.pbm}}

Code Snippets

Read a PBM image, set its maxval and save it to a file

pamdepth {{maxval}} {{path/to/image.pbm}} > {{path/to/file.pbm}}

Context

tldr-pages: common/pamdepth

Revisions (0)

No revisions yet.