From 3f78c1f04092c83a1cc4d1c10a3c34ba266f7c0b Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Sat, 28 Dec 2024 13:45:15 +0100 Subject: [PATCH] spottopgm, rlatopam, rgb3toppm, ppmtorgb3: add pages (#15354) * fix ci * spottopgm, rlatopam, rgb3toppm, ppmtorgb3: add pages * fix typo --- pages/common/ppmtorgb3.md | 9 +++++++++ pages/common/rgb3toppm.md | 9 +++++++++ pages/common/rlatopam.md | 8 ++++++++ pages/common/spottopgm.md | 16 ++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 pages/common/ppmtorgb3.md create mode 100644 pages/common/rgb3toppm.md create mode 100644 pages/common/rlatopam.md create mode 100644 pages/common/spottopgm.md diff --git a/pages/common/ppmtorgb3.md b/pages/common/ppmtorgb3.md new file mode 100644 index 0000000000..26422d2e6b --- /dev/null +++ b/pages/common/ppmtorgb3.md @@ -0,0 +1,9 @@ +# ppmtorgb3 + +> Separate the color components of a PPM file into three separate PGM files. +> See also: `rgb3toppm`. +> More information: . + +- Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`: + +`ppmtorgb3 {{path/to/file.ppm}}` diff --git a/pages/common/rgb3toppm.md b/pages/common/rgb3toppm.md new file mode 100644 index 0000000000..bec6840215 --- /dev/null +++ b/pages/common/rgb3toppm.md @@ -0,0 +1,9 @@ +# rgb3toppm + +> Combine three PGM images into one PPM image. +> See also: `ppmtorgb3`. +> More information: . + +- Combine three PGM images (representing red, green and blue color components) into one PPM image: + +`rgb3toppm {{path/to/red_file.ppm}} {{path/to/green_file.ppm}} {{path/to/blue_file.ppm}} > {{path/to/output.ppm}}` diff --git a/pages/common/rlatopam.md b/pages/common/rlatopam.md new file mode 100644 index 0000000000..3a1c9a4f1f --- /dev/null +++ b/pages/common/rlatopam.md @@ -0,0 +1,8 @@ +# rlatopam + +> Convert Alias/Wavefront RLA and RPF image files to Netpbm format. +> More information: . + +- Convert the specified SPOT image to PGM format: + +`rlatopam {{path/to/file}} > {{path/to/output.pam}}` diff --git a/pages/common/spottopgm.md b/pages/common/spottopgm.md new file mode 100644 index 0000000000..e093302c5d --- /dev/null +++ b/pages/common/spottopgm.md @@ -0,0 +1,16 @@ +# spottopgm + +> Convert a SPOT satellite image to PGM format. +> More information: . + +- Convert the specified SPOT image to PGM format: + +`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- Extract the specified color channel: + +`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}` + +- Extract the specified rectangle from the input image: + +`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}`