Files
cheatsheet-tldr/tldr/ppmhist
2025-04-02 00:19:10 +00:00

23 lines
540 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ppmhist
> Print a histogram of the colors present in a PPM image.
> See also: `pgmhist`.
> More information: <https://netpbm.sourceforge.net/doc/ppmhist.html>.
- Generate the histogram for human reading:
`ppmhist {{[-nom|-nomap]}} {{path/to/image.ppm}}`
- Generate a PPM file of the colormap for the image, with the color histogram as comments:
`ppmhist {{[-m|-map]}} {{path/to/image.ppm}}`
- Display version:
`ppmhist {{[-v|-version]}}`