Files
cheatsheet-tldr/tldr/pamdepth

14 lines
360 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`