mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 17:58:01 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert a raw RGB stream in which the pixels come bottom-first instead of top-first to a PPM image:
|
||||
|
||||
`rawtoppm {{width}} {{height}} {{path/to/image.raw}} | pamflip -tb > {{path/to/output.ppm}}`
|
||||
`rawtoppm {{width}} {{height}} {{path/to/image.raw}} | pamflip {{[-tb|-topbottom]}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Ignore the first n bytes of the specified file:
|
||||
|
||||
`rawtoppm {{width}} {{height}} -headerskip {{n}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
|
||||
`rawtoppm {{width}} {{height}} {{[-h|-headerskip]}} {{n}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Ignore the last m bytes of each row in the specified file:
|
||||
|
||||
`rawtoppm {{width}} {{height}} -rowskip {{m}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
|
||||
`rawtoppm {{width}} {{height}} {{[-ro|-rowskip]}} {{m}} {{path/to/image.raw}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Specify the order of color components for each pixel:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user