mirror of https://github.com/CrimsonTome/tldr.git
pamoil, pgmbentley, pgmdeshadow, pgmoil, ppmrainbow, ppmrelief, ppmshadow, ppmshift, ppmspread, ppmtoacad, ppmtobmp, ppmtoicr: add pages (#11433)
parent
83d378125b
commit
4529c9b110
|
@ -0,0 +1,12 @@
|
|||
# pamoil
|
||||
|
||||
> Turn a PAM image into an oil painting.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pamoil.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,8 @@
|
|||
# pgmbentley
|
||||
|
||||
> Bentleyize a PGM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pgmbentley.html>.
|
||||
|
||||
- Apply the Bentley Effect on a PGM image:
|
||||
|
||||
`pgmbentley {{path/to/input_file.pgm}} > {{path/to/output_file.pgm}}`
|
|
@ -0,0 +1,8 @@
|
|||
# pgmdeshadow
|
||||
|
||||
> Deshadow a PGM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pgmdeshadow.html>.
|
||||
|
||||
- Remove grey shadows from a PGM image:
|
||||
|
||||
`pgmdeshadow {{path/to/input_file.pgm}} > {{path/to/output_file.pgm}}`
|
|
@ -0,0 +1,8 @@
|
|||
# pgmoil
|
||||
|
||||
> This command is superseded by `pamoil`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pgmoil.html>.
|
||||
|
||||
- View documentation for the current command:
|
||||
|
||||
`tldr pamoil`
|
|
@ -0,0 +1,16 @@
|
|||
# ppmrainbow
|
||||
|
||||
> Generate a rainbow.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmrainbow.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,8 @@
|
|||
# ppmrelief
|
||||
|
||||
> Produce a relief of a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmrelief.html>.
|
||||
|
||||
- Produce a relief of the specified PPM image:
|
||||
|
||||
`ppmrelief {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
|
|
@ -0,0 +1,16 @@
|
|||
# ppmshadow
|
||||
|
||||
> Add simulated shadows to a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmshadow.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,8 @@
|
|||
# ppmshift
|
||||
|
||||
> Shift the lines in a PPM image by a randomized amount.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmshift.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,12 @@
|
|||
# ppmspread
|
||||
|
||||
> Displace the pixels in a PPM image by a randomized amount.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmspread.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,16 @@
|
|||
# ppmtoacad
|
||||
|
||||
> Convert a PPM image to an AutoCAD database or slide.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoacad.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,16 @@
|
|||
# ppmtobmp
|
||||
|
||||
> Convert a PPM image to a BMP file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtobmp.html>.
|
||||
|
||||
- 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}}`
|
|
@ -0,0 +1,20 @@
|
|||
# ppmtoicr
|
||||
|
||||
> Convert a PPM image to NCSA ICR format.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoicr.html>.
|
||||
|
||||
- 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}}`
|
Loading…
Reference in New Issue