1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

spottopgm, rlatopam, rgb3toppm, ppmtorgb3: add pages (#15354)

* fix ci

* spottopgm, rlatopam, rgb3toppm, ppmtorgb3: add pages

* fix typo
This commit is contained in:
Juri Dispan 2024-12-28 13:45:15 +01:00 committed by GitHub
parent 15949a7e47
commit 3f78c1f040
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# ppmtorgb3
> Separate the color components of a PPM file into three separate PGM files.
> See also: `rgb3toppm`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtorgb3.html>.
- Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`:
`ppmtorgb3 {{path/to/file.ppm}}`

View file

@ -0,0 +1,9 @@
# rgb3toppm
> Combine three PGM images into one PPM image.
> See also: `ppmtorgb3`.
> More information: <https://netpbm.sourceforge.net/doc/rgb3toppm.html>.
- 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}}`

8
pages/common/rlatopam.md Normal file
View file

@ -0,0 +1,8 @@
# rlatopam
> Convert Alias/Wavefront RLA and RPF image files to Netpbm format.
> More information: <https://netpbm.sourceforge.net/doc/rlatopam.html>.
- Convert the specified SPOT image to PGM format:
`rlatopam {{path/to/file}} > {{path/to/output.pam}}`

16
pages/common/spottopgm.md Normal file
View file

@ -0,0 +1,16 @@
# spottopgm
> Convert a SPOT satellite image to PGM format.
> More information: <https://netpbm.sourceforge.net/doc/spottopgm.html>.
- 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}}`