From 4529c9b1108841820ca08934c12ac5d075295fb8 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 10 Nov 2023 05:20:47 +0100 Subject: [PATCH] pamoil, pgmbentley, pgmdeshadow, pgmoil, ppmrainbow, ppmrelief, ppmshadow, ppmshift, ppmspread, ppmtoacad, ppmtobmp, ppmtoicr: add pages (#11433) --- pages/common/pamoil.md | 12 ++++++++++++ pages/common/pgmbentley.md | 8 ++++++++ pages/common/pgmdeshadow.md | 8 ++++++++ pages/common/pgmoil.md | 8 ++++++++ pages/common/ppmrainbow.md | 16 ++++++++++++++++ pages/common/ppmrelief.md | 8 ++++++++ pages/common/ppmshadow.md | 16 ++++++++++++++++ pages/common/ppmshift.md | 8 ++++++++ pages/common/ppmspread.md | 12 ++++++++++++ pages/common/ppmtoacad.md | 16 ++++++++++++++++ pages/common/ppmtobmp.md | 16 ++++++++++++++++ pages/common/ppmtoicr.md | 20 ++++++++++++++++++++ 12 files changed, 148 insertions(+) create mode 100644 pages/common/pamoil.md create mode 100644 pages/common/pgmbentley.md create mode 100644 pages/common/pgmdeshadow.md create mode 100644 pages/common/pgmoil.md create mode 100644 pages/common/ppmrainbow.md create mode 100644 pages/common/ppmrelief.md create mode 100644 pages/common/ppmshadow.md create mode 100644 pages/common/ppmshift.md create mode 100644 pages/common/ppmspread.md create mode 100644 pages/common/ppmtoacad.md create mode 100644 pages/common/ppmtobmp.md create mode 100644 pages/common/ppmtoicr.md diff --git a/pages/common/pamoil.md b/pages/common/pamoil.md new file mode 100644 index 000000000..97ec56f62 --- /dev/null +++ b/pages/common/pamoil.md @@ -0,0 +1,12 @@ +# pamoil + +> Turn a PAM image into an oil painting. +> More information: . + +- Turn a PAM image into an oil painting: + +`pamoil {{path/to/input_file.pam}} > {{path/to/output_file.pam}}` + +- Consider a neighborhood of N pixels for the "smearing" effect: + +`pamoil -n {{N}} {{path/to/input_file.pam}} > {{path/to/output_file.pam}}` diff --git a/pages/common/pgmbentley.md b/pages/common/pgmbentley.md new file mode 100644 index 000000000..035cdfb52 --- /dev/null +++ b/pages/common/pgmbentley.md @@ -0,0 +1,8 @@ +# pgmbentley + +> Bentleyize a PGM image. +> More information: . + +- Apply the Bentley Effect on a PGM image: + +`pgmbentley {{path/to/input_file.pgm}} > {{path/to/output_file.pgm}}` diff --git a/pages/common/pgmdeshadow.md b/pages/common/pgmdeshadow.md new file mode 100644 index 000000000..2834407a5 --- /dev/null +++ b/pages/common/pgmdeshadow.md @@ -0,0 +1,8 @@ +# pgmdeshadow + +> Deshadow a PGM image. +> More information: . + +- Remove grey shadows from a PGM image: + +`pgmdeshadow {{path/to/input_file.pgm}} > {{path/to/output_file.pgm}}` diff --git a/pages/common/pgmoil.md b/pages/common/pgmoil.md new file mode 100644 index 000000000..fc7225343 --- /dev/null +++ b/pages/common/pgmoil.md @@ -0,0 +1,8 @@ +# pgmoil + +> This command is superseded by `pamoil`. +> More information: . + +- View documentation for the current command: + +`tldr pamoil` diff --git a/pages/common/ppmrainbow.md b/pages/common/ppmrainbow.md new file mode 100644 index 000000000..a03564763 --- /dev/null +++ b/pages/common/ppmrainbow.md @@ -0,0 +1,16 @@ +# ppmrainbow + +> Generate a rainbow. +> More information: . + +- Generate a rainbow consisting of the specified colors: + +`ppmrainbow {{color1 color2 ...}} > {{path/to/output_file.ppm}}` + +- Specify the size of the output in pixels: + +`ppmrainbow -width {{width}} -height {{height}} {{color1 color2 ...}} > {{path/to/output_file.ppm}}` + +- End the rainbow with the last color specified, do not repeat the first color: + +`ppmrainbow -norepeat {{color1 color2 ...}} > {{path/to/output_file.ppm}}` diff --git a/pages/common/ppmrelief.md b/pages/common/ppmrelief.md new file mode 100644 index 000000000..0a1d73031 --- /dev/null +++ b/pages/common/ppmrelief.md @@ -0,0 +1,8 @@ +# ppmrelief + +> Produce a relief of a PPM image. +> More information: . + +- Produce a relief of the specified PPM image: + +`ppmrelief {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` diff --git a/pages/common/ppmshadow.md b/pages/common/ppmshadow.md new file mode 100644 index 000000000..55a5e79d4 --- /dev/null +++ b/pages/common/ppmshadow.md @@ -0,0 +1,16 @@ +# ppmshadow + +> Add simulated shadows to a PPM image. +> More information: . + +- Add simulated shadows to a PPM image: + +`ppmshadow {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- [b]lur the image by the specified number of pixels: + +`ppmshadow -b {{n}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- Specify the displacement of the simulated light source to the left and the top of the image: + +`ppmshadow -x {{left_offset}} -y {{top_offset}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` diff --git a/pages/common/ppmshift.md b/pages/common/ppmshift.md new file mode 100644 index 000000000..b159170b3 --- /dev/null +++ b/pages/common/ppmshift.md @@ -0,0 +1,8 @@ +# ppmshift + +> Shift the lines in a PPM image by a randomized amount. +> More information: . + +- Shift the lines in the input image by a randomized amount not exceeding s to the left or to the right: + +`ppmshift {{s}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` diff --git a/pages/common/ppmspread.md b/pages/common/ppmspread.md new file mode 100644 index 000000000..637030da3 --- /dev/null +++ b/pages/common/ppmspread.md @@ -0,0 +1,12 @@ +# ppmspread + +> Displace the pixels in a PPM image by a randomized amount. +> More information: . + +- Displace the pixels in a PPM image by a randomized amount that is at most a: + +`ppmspread {{a}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` + +- Specify a seed to a the pseudo-random number generator: + +`ppmspread {{a}} {{path/to/input_file.ppm}} -randomseed {{seed}} > {{path/to/output_file.ppm}}` diff --git a/pages/common/ppmtoacad.md b/pages/common/ppmtoacad.md new file mode 100644 index 000000000..6c8930d56 --- /dev/null +++ b/pages/common/ppmtoacad.md @@ -0,0 +1,16 @@ +# ppmtoacad + +> Convert a PPM image to an AutoCAD database or slide. +> More information: . + +- Convert a PPM image to an AutoCAD slide: + +`ppmtoacad {{path/to/file.ppm}} > {{path/to/file.acad}}` + +- Convert a PPM image to an AutoCAD binary database import file: + +`ppmtoacad -dxb {{path/to/file.ppm}} > {{path/to/file.dxb}}` + +- Restrict the colors in the output to 8 RGB shades: + +`ppmtoacad -8 {{path/to/file.ppm}} > {{path/to/file.dxb}}` diff --git a/pages/common/ppmtobmp.md b/pages/common/ppmtobmp.md new file mode 100644 index 000000000..b19c792ac --- /dev/null +++ b/pages/common/ppmtobmp.md @@ -0,0 +1,16 @@ +# ppmtobmp + +> Convert a PPM image to a BMP file. +> More information: . + +- Convert a PPM image to a BMP file: + +`ppmtobmp {{path/to/file.ppm}} > {{path/to/file.bmp}}` + +- Explicitly specify whether or not a Windows BMP file or an OS/2 BMP file should be created: + +`ppmtobmp -{{windows|os2}} {{path/to/file.ppm}} > {{path/to/file.bmp}}` + +- Specify the number of bits to use for each pixel: + +`ppmtobmp -bbp {{1|4|8|24}} {{path/to/file.ppm}} > {{path/to/file.bmp}}` diff --git a/pages/common/ppmtoicr.md b/pages/common/ppmtoicr.md new file mode 100644 index 000000000..0bc45199f --- /dev/null +++ b/pages/common/ppmtoicr.md @@ -0,0 +1,20 @@ +# ppmtoicr + +> Convert a PPM image to NCSA ICR format. +> More information: . + +- Convert a PPM image to a ICR file: + +`ppmtoicr {{path/to/file.ppm}} > {{path/to/file.icr}}` + +- Display the output in name: + +`ppmtoicr -windowname {{name}} {{path/to/file.ppm}} > {{path/to/file.icr}}` + +- Expand the image by the specified factor: + +`ppmtoicr -expand {{factor}} {{path/to/file.ppm}} > {{path/to/file.icr}}` + +- Display the output on the screen with the specified number: + +`ppmtoicr -display {{number}} {{path/to/file.ppm}} > {{path/to/file.icr}}`