1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-08 16:15:49 +02:00
tldr/pages/common/pgmramp.md
2025-07-22 22:08:27 +05:30

24 lines
620 B
Markdown

# pgmramp
> Generate a greyscale map.
> More information: <https://netpbm.sourceforge.net/doc/pgmramp.html>.
- Generate a left-to-right greyscale map:
`pgmramp -lr > {{path/to/output.pgm}}`
- Generate a top-to-bottom greyscale map:
`pgmramp -tb > {{path/to/output.pgm}}`
- Generate a rectangular greyscale map:
`pgmramp -rectangle > {{path/to/output.pgm}}`
- Generate a elliptical greyscale map:
`pgmramp -ellipse {{path/to/image.pgm}} > {{path/to/output.pgm}}`
- Generate a greyscale map from the top-left corner to the bottom-right corner:
`pgmramp -diagonal {{path/to/image.pgm}} > {{path/to/output.pgm}}`