diff --git a/pages/common/pamtoqoi.md b/pages/common/pamtoqoi.md new file mode 100644 index 000000000..ff0f8b3c9 --- /dev/null +++ b/pages/common/pamtoqoi.md @@ -0,0 +1,8 @@ +# pamtoqoi + +> Convert a Netpbm image to a QOI image (Quite OK Image format). +> More information: . + +- Convert a Netpbm image to the QOI format: + +`pamtoqoi {{path/to/image.pnm}} > {{path/to/output.qoi}}` diff --git a/pages/common/pbmtozinc.md b/pages/common/pbmtozinc.md new file mode 100644 index 000000000..fb6853ec9 --- /dev/null +++ b/pages/common/pbmtozinc.md @@ -0,0 +1,8 @@ +# pbmtozinc + +> Convert a PBM image to a Zinc bitmap as used by the Zinc Interface Library Version 1.0. +> More information: . + +- Convert a PBM image to a Zinc bitmap: + +`pbmtozinc {{path/to/image.pbm}} > {{path/to/output.zinc}}` diff --git a/pages/common/ppmtoarbtxt.md b/pages/common/ppmtoarbtxt.md new file mode 100644 index 000000000..91e2f93cd --- /dev/null +++ b/pages/common/ppmtoarbtxt.md @@ -0,0 +1,20 @@ +# ppmtoarbtxt + +> Convert a PPM image to an arbitrary text format according to a template. +> More information: . + +- Convert a PPM image to text as specified by the given template: + +`ppmtoarbtxt {{path/to/template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}` + +- Convert a PPM image to text as specified by the given template, prepend the contents of the specified head template: + +`ppmtoarbtxt {{path/to/template}} -hd {{path/to/head_template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}` + +- Convert a PPM image to text as specified by the given template, append the contents of the specified tail template: + +`ppmtoarbtxt {{path/to/template}} -hd {{path/to/tail_template}} {{path/to/image.ppm}} > {{path/to/output_file.txt}}` + +- Display version: + +`ppmtoarbtxt -version` diff --git a/pages/common/qoitopam.md b/pages/common/qoitopam.md new file mode 100644 index 000000000..49ae47551 --- /dev/null +++ b/pages/common/qoitopam.md @@ -0,0 +1,8 @@ +# qoitopam + +> Convert a QOI image (Quite OK Image format) to Netpbm. +> More information: . + +- Convert a QOI image to Netpbm: + +`qoitopam {{path/to/image.qoi}} > {{path/to/output.pnm}}` diff --git a/pages/common/rawtopgm.md b/pages/common/rawtopgm.md new file mode 100644 index 000000000..f772eaa6a --- /dev/null +++ b/pages/common/rawtopgm.md @@ -0,0 +1,32 @@ +# rawtopgm + +> Convert a raw greyscale image to a PGM image. +> More information: . + +- Convert a raw greyscale image to a PGM image: + +`rawtopgm {{width}} {{height}} {{path/to/image.raw}} > {{path/to/output.pgm}}` + +- Convert a raw greyscale image to a PGM image, assume the image to be a square: + +`rawtopgm {{path/to/image.raw}} > {{path/to/output.pgm}}` + +- 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}}` + +- Ignore the first n bytes of the specified file: + +`rawtopgm {{width}} {{height}} -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}}` + +- 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}}` + +- 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}}` diff --git a/pages/common/rawtoppm.md b/pages/common/rawtoppm.md new file mode 100644 index 000000000..000a3cc7d --- /dev/null +++ b/pages/common/rawtoppm.md @@ -0,0 +1,24 @@ +# rawtoppm + +> Convert a raw RGB stream to a PPM image. +> More information: . + +- Convert a raw RGB stream to a PPM image: + +`rawtoppm {{width}} {{height}} {{path/to/image.raw}} > {{path/to/output.ppm}}` + +- 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}}` + +- Ignore the first n bytes of the specified file: + +`rawtoppm {{width}} {{height}} -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}}` + +- Specify the order of color components for each pixel: + +`rawtoppm {{width}} {{height}} -{{rgb|rbg|grb|gbr|brg|bgr}} {{path/to/image.raw}} > {{path/to/output.ppm}}`