1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00
This commit is contained in:
Antti Savolainen 2025-03-28 05:51:39 +02:00
parent e3ccf9eae7
commit 90bda1304a
10 changed files with 20 additions and 20 deletions

View file

@ -5,8 +5,8 @@
- Increase the saturation of each pixel by the specified percentage:
`pambrighten -saturation {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}`
`pambrighten {{[-s|-saturation]}} {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}`
- Increase the value (from the HSV color space) of each pixel by the specified percentage:
`pambrighten -value {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}`
`pambrighten {{[-v|-value]}} {{value_percent}} {{path/to/image.pam}} > {{path/to/output.pam}}`

View file

@ -6,8 +6,8 @@
- Create an image of cratered terrain with the specified dimensions:
`pamcrater -height {{height}} -width {{width}} > {{path/to/output.pam}}`
`pamcrater {{[-h|-height]}} {{height}} {{[-w|-width]}} {{width}} > {{path/to/output.pam}}`
- Create an image containing the specified number of craters:
`pamcrater -number {{n_craters}} > {{path/to/output.pam}}`
`pamcrater {{[-n|-number]}} {{n_craters}} > {{path/to/output.pam}}`

View file

@ -10,4 +10,4 @@
- Stop processing if a command terminates with a nonzero exit status:
`pamexec {{command}} {{path/to/image.pam}} -check`
`pamexec {{command}} {{path/to/image.pam}} {{[-c|-check]}}`

View file

@ -6,12 +6,12 @@
- Fix a Netpbm file that is missing its last part:
`pamfix -truncate {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
`pamfix {{[-t|-truncate]}} {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
- Fix a Netpbm file where pixel values exceed the image's `maxval` by lowering the offending pixels' values:
`pamfix -clip {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
`pamfix {{[-cl|-clip]}} {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
- Fix a Netpbm file where pixel values exceed the image's `maxval` by increasing it:
`pamfix -changemaxval {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}`
`pamfix {{[-ch|-changemaxval]}} {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}`

View file

@ -10,4 +10,4 @@
- Gamma adjust the image by the specified factor:
`pamshadedrelief -gamma {{factor}} < {{path/to/input.pam}} > {{path/to/output.pam}}`
`pamshadedrelief {{[-g|-gamma]}} {{factor}} < {{path/to/input.pam}} > {{path/to/output.pam}}`

View file

@ -5,16 +5,16 @@
- Print the values of the pixels in the n'th row in a table:
`pamslice -row {{n}} {{path/to/image.pam}}`
`pamslice {{[-r|-row]}} {{n}} {{path/to/image.pam}}`
- Print the values of the pixels in the n'th column in a table:
`pamslice -column {{n}} {{path/to/image.pam}}`
`pamslice {{[-c|-column]}} {{n}} {{path/to/image.pam}}`
- Consider the m'th plane of the input image only:
`pamslice -row {{n}} -plane {{m}} {{path/to/image.pam}}`
`pamslice {{[-r|-row]}} {{n}} {{[-p|-plane]}} {{m}} {{path/to/image.pam}}`
- Produce output in a format suitable for input to an `xmgr` for visualisation:
`pamslice -row {{n}} -xmgr {{path/to/image.pam}}`
`pamslice {{[-r|-row]}} {{n}} {{[-x|-xmgr]}} {{path/to/image.pam}}`

View file

@ -10,8 +10,8 @@
- Mark the specified color as transparent in the output GIF file:
`pamtogif -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.gif}}`
`pamtogif {{[-t|-transparent]}} {{color}} {{path/to/image.pam}} > {{path/to/output.gif}}`
- Include the specified text as a comment in the output GIF file:
`pamtogif -comment "{{Hello World!}}" {{path/to/image.pam}} > {{path/to/output.gif}}`
`pamtogif {{[-c|-comment]}} "{{Hello World!}}" {{path/to/image.pam}} > {{path/to/output.gif}}`

View file

@ -9,4 +9,4 @@
- Display version:
`pamtopam -version`
`pamtopam {{[-v|-version]}}`

View file

@ -10,12 +10,12 @@
- Mark the specified color as transparent in the output image:
`pamtopng -transparent {{color}} {{path/to/image.pam}} > {{path/to/output.png}}`
`pamtopng {{[-t|-transparent]}} {{color}} {{path/to/image.pam}} > {{path/to/output.png}}`
- Include the text in the specified file as tEXt chunks in the output:
`pamtopng -text {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}`
`pamtopng {{[-te|-text]}} {{path/to/file.txt}} {{path/to/image.pam}} > {{path/to/output.png}}`
- Cause the output file to be interlaced in Adam7 format:
`pamtopng -interlace {{path/to/image.pam}} > {{path/to/output.png}}`
`pamtopng {{[-in|-interlace]}} {{path/to/image.pam}} > {{path/to/output.png}}`

View file

@ -9,4 +9,4 @@
- Display version:
`pamtopnm -version`
`pamtopnm {{[-v|-version]}}`