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

ppmdist — Produce a grayscale version of a PPM image. More information: <https://netpbm.sourceforge.net/doc/pp

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

Problem

How to use the ppmdist command: Produce a grayscale version of a PPM image. More information: <https://netpbm.sourceforge.net/doc/ppmdist.html>.

Solution

ppmdist — Produce a grayscale version of a PPM image. More information: <https://netpbm.sourceforge.net/doc/ppmdist.html>.

Produce a grayscale version of the specified PPM image:
ppmdist {{path/to/input.ppm}} > {{path/to/output.pgm}}


Use the specified method to map colors to graylevels:
ppmdist -{{frequency|intensity}} {{path/to/input.ppm}} > {{path/to/output.pgm}}

Code Snippets

Produce a grayscale version of the specified PPM image

ppmdist {{path/to/input.ppm}} > {{path/to/output.pgm}}

Use the specified method to map colors to graylevels

ppmdist -{{frequency|intensity}} {{path/to/input.ppm}} > {{path/to/output.pgm}}

Context

tldr-pages: common/ppmdist

Revisions (0)

No revisions yet.