diff --git a/pages/common/pnmtorast.md b/pages/common/pnmtorast.md new file mode 100644 index 000000000..3686e9ce4 --- /dev/null +++ b/pages/common/pnmtorast.md @@ -0,0 +1,12 @@ +# pnmtorast + +> Convert a PNM file to a Sun rasterfile. +> More information: . + +- 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}}` diff --git a/pages/common/pnmtorle.md b/pages/common/pnmtorle.md new file mode 100644 index 000000000..ef2ff4b23 --- /dev/null +++ b/pages/common/pnmtorle.md @@ -0,0 +1,16 @@ +# pnmtorle + +> Convert a PNM file to an Utah Raster Tools RLE image file. +> More information: . + +- 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}}` diff --git a/pages/common/pnmtosgi.md b/pages/common/pnmtosgi.md new file mode 100644 index 000000000..5d56d99c1 --- /dev/null +++ b/pages/common/pnmtosgi.md @@ -0,0 +1,16 @@ +# pnmtosgi + +> Convert a PNM file to an SGI image file. +> More information: . + +- 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}}` diff --git a/pages/common/pnmtosir.md b/pages/common/pnmtosir.md new file mode 100644 index 000000000..143f95be4 --- /dev/null +++ b/pages/common/pnmtosir.md @@ -0,0 +1,8 @@ +# pnmtosir + +> Convert a PNM file to a Solitaire Image Recorder file. +> More information: . + +- Convert a PNM image to a SIR image: + +`pnmtosir {{path/to/input.pnm}} > {{path/to/output.sir}}` diff --git a/pages/common/rasttopnm.md b/pages/common/rasttopnm.md new file mode 100644 index 000000000..f6b3e574c --- /dev/null +++ b/pages/common/rasttopnm.md @@ -0,0 +1,12 @@ +# rasttopnm + +> Convert a Sun rasterfile to a PNM file. +> More information: . + +- 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}}` diff --git a/pages/common/rletopnm.md b/pages/common/rletopnm.md new file mode 100644 index 000000000..d67bb9b13 --- /dev/null +++ b/pages/common/rletopnm.md @@ -0,0 +1,16 @@ +# rletopnm + +> Convert a Utah Raster Tools RLE image file to a PNM file. +> More information: . + +- 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}}` diff --git a/pages/common/sgitopnm.md b/pages/common/sgitopnm.md new file mode 100644 index 000000000..5f809e603 --- /dev/null +++ b/pages/common/sgitopnm.md @@ -0,0 +1,16 @@ +# sgitopnm + +> Convert an SGI file to a PNM file. +> More information: . + +- 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}}` diff --git a/pages/common/sirtopnm.md b/pages/common/sirtopnm.md new file mode 100644 index 000000000..414153337 --- /dev/null +++ b/pages/common/sirtopnm.md @@ -0,0 +1,8 @@ +# sirtopnm + +> Convert a Solitaire Image Recorder file to a PNM file. +> More information: . + +- Convert a SIR image to a PNM file: + +`sirtopnm {{path/to/input.sir}} > {{path/to/output.pnm}}`