From e8e3f2c4fd362d0f0c65535a18b8806609fad622 Mon Sep 17 00:00:00 2001 From: debghs <145260557+debghs@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:46:48 +0530 Subject: [PATCH] ppmhist: add page (#10950) * ppmhist: add page --------- Co-authored-by: K.B.Dharun Krishna --- pages/common/ppmhist.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/ppmhist.md diff --git a/pages/common/ppmhist.md b/pages/common/ppmhist.md new file mode 100644 index 000000000..461b29107 --- /dev/null +++ b/pages/common/ppmhist.md @@ -0,0 +1,16 @@ +# ppmhist + +> Print a histogram of the colors present in a PPM image. +> More information: . + +- Generate the histogram for human reading: + +`ppmhist -nomap {{path/to/image_file.ppm}}` + +- Generate a PPM file of the colormap for the image, with the color histogram as comments: + +`ppmhist -map {{path/to/image_file.ppm}}` + +- Display version: + +`ppmhist -version`