mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 11:59:41 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,20 +18,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert a raw greyscale image in which the pixels come bottom-first instead of top-first to a PGM image:
|
||||
|
||||
`rawtopgm {{width}} {{height}} -bottomfirst {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
`rawtopgm {{width}} {{height}} {{[-bt|-bottomfirst]}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
|
||||
- Ignore the first `n` bytes of the specified file:
|
||||
|
||||
`rawtopgm {{width}} {{height}} -headerskip {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
`rawtopgm {{width}} {{height}} {{[-h|-headerskip]}} {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
|
||||
- Ignore the last m bytes of each row in the specified file:
|
||||
|
||||
`rawtopgm {{width}} {{height}} -rowskip {{m}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
`rawtopgm {{width}} {{height}} {{[-r|-rowskip]}} {{m}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
|
||||
- Specify the maxval for the grey values in the input to be equal to `n`:
|
||||
|
||||
`rawtopgm {{width}} {{height}} -maxval {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
`rawtopgm {{width}} {{height}} {{[-m|-maxval]}} {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
|
||||
- Specify the number of bytes that represent each sample in the input and that the byte-sequence is to be interpreted as little-endian:
|
||||
|
||||
`rawtopgm {{width}} {{height}} -bpp {{1|2}} -littleendian {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
`rawtopgm {{width}} {{height}} -bpp {{1|2}} {{[-l|-littleendian]}} {{path/to/image.raw}} > {{path/to/output.pgm}}`
|
||||
|
||||
Reference in New Issue
Block a user