mirror of https://github.com/CrimsonTome/tldr.git
pnmtorast, pnmtorle, pnmtosgi, pnmtosir, rasttopnm, rletopnm, sgitopnm, sirtopnm: add pages (#11410)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>pull/23/head
parent
f96c1b6848
commit
c249538169
|
@ -0,0 +1,12 @@
|
|||
# pnmtorast
|
||||
|
||||
> Convert a PNM file to a Sun rasterfile.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmtorast.html>.
|
||||
|
||||
- Convert a PNM image to a RAST image:
|
||||
|
||||
`pnmtorast {{path/to/input.pnm}} > {{path/to/output.rast}}`
|
||||
|
||||
- Force either `RT_STANDARD` or `RT_BYTE_ENCODED` form for the output:
|
||||
|
||||
`pnmtorast -{{standard|rle}} {{path/to/input.pnm}} > {{path/to/output.rast}}`
|
|
@ -0,0 +1,16 @@
|
|||
# pnmtorle
|
||||
|
||||
> Convert a PNM file to an Utah Raster Tools RLE image file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmtorle.html>.
|
||||
|
||||
- Convert a PNM image to an RLE image:
|
||||
|
||||
`pnmtorle {{path/to/input.pnm}} > {{path/to/output.rle}}`
|
||||
|
||||
- Print PNM header information to `stdout`:
|
||||
|
||||
`pnmtorle -verbose {{path/to/input.pnm}} > {{path/to/output.rle}}`
|
||||
|
||||
- Include a transparency channel in the output image in which every black pixel is set to fully transparent and every other pixel is set to fully opaque:
|
||||
|
||||
`pnmtorle -alpha {{path/to/input.pnm}} > {{path/to/output.rle}}`
|
|
@ -0,0 +1,16 @@
|
|||
# pnmtosgi
|
||||
|
||||
> Convert a PNM file to an SGI image file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmtosgi.html>.
|
||||
|
||||
- Convert a PNM image to an SGI image:
|
||||
|
||||
`pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}`
|
||||
|
||||
- Specify whether or not compression should be used:
|
||||
|
||||
`pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}`
|
||||
|
||||
- Write the specified string into the SGI image header's `imagename` field:
|
||||
|
||||
`pnmtosgi -imagename {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}`
|
|
@ -0,0 +1,8 @@
|
|||
# pnmtosir
|
||||
|
||||
> Convert a PNM file to a Solitaire Image Recorder file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmtosir.html>.
|
||||
|
||||
- Convert a PNM image to a SIR image:
|
||||
|
||||
`pnmtosir {{path/to/input.pnm}} > {{path/to/output.sir}}`
|
|
@ -0,0 +1,12 @@
|
|||
# rasttopnm
|
||||
|
||||
> Convert a Sun rasterfile to a PNM file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/rasttopnm.html>.
|
||||
|
||||
- Convert a RAST image to a PNM file:
|
||||
|
||||
`rasttopnm {{path/to/input.rast}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Use the color map indices in the raster if they are color values:
|
||||
|
||||
`rasttopnm -index {{path/to/input.rast}} > {{path/to/output.pnm}}`
|
|
@ -0,0 +1,16 @@
|
|||
# rletopnm
|
||||
|
||||
> Convert a Utah Raster Tools RLE image file to a PNM file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/rletopnm.html>.
|
||||
|
||||
- Convert an RLE image to a PNM file:
|
||||
|
||||
`rletopnm {{path/to/input.rle}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Create a PGM image containing the RLE file's alpha channel:
|
||||
|
||||
`rletopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input.rle}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Operate in verbose mode and print the contents of the RLE header to `stdout`:
|
||||
|
||||
`rletopnm -verbose {{path/to/input.rle}} > {{path/to/output.pnm}}`
|
|
@ -0,0 +1,16 @@
|
|||
# sgitopnm
|
||||
|
||||
> Convert an SGI file to a PNM file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/sgitopnm.html>.
|
||||
|
||||
- Convert an SGI image to a PNM file:
|
||||
|
||||
`sgitopnm {{path/to/input.sgi}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Display information about the SGI file:
|
||||
|
||||
`sgitopnm -verbose {{path/to/input.sgi}} > {{path/to/output.pnm}}`
|
||||
|
||||
- Extract channel n of the SGI file:
|
||||
|
||||
`sgitopnm -channel {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}`
|
|
@ -0,0 +1,8 @@
|
|||
# sirtopnm
|
||||
|
||||
> Convert a Solitaire Image Recorder file to a PNM file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/sirtopnm.html>.
|
||||
|
||||
- Convert a SIR image to a PNM file:
|
||||
|
||||
`sirtopnm {{path/to/input.sir}} > {{path/to/output.pnm}}`
|
Loading…
Reference in New Issue