pamtowinicon, pgmtosbig, pgmtost4, ppmtowinicon, sbigtopgm, st4topgm, winicontopam, winicontoppm: add pages (#11404)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
pull/23/head
Juri Dispan 2023-11-07 20:02:14 +01:00 committed by GitHub
parent 5788b56f69
commit 94f2502991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# pamtowinicon
> Convert a PAM image to a Windows ICO file.
> More information: <https://netpbm.sourceforge.net/doc/pamtowinicon.html>.
- Convert a PAM image file to an ICO file:
`pamtowinicon {{path/to/input_file.pam}} > {{path/to/output.ico}}`
- Encode images with resolutions smaller than t in the BMP format and all other images in the PNG format:
`pamtowinicon -pngthreshold {{t}} {{path/to/input_file.pam}} > {{path/to/output.ico}}`
- Make all pixels outside the non-opaque area black:
`pamtowinicon -truetransparent {{path/to/input_file.pam}} > {{path/to/output.ico}}`

View File

@ -0,0 +1,8 @@
# pgmtosbig
> Convert a PGM image to the SBIG CCDOPS format.
> More information: <https://netpbm.sourceforge.net/doc/pgmtosbig.html>.
- Convert a PGM image file to the SBIG CCDOPS format:
`pgmtosbig {{path/to/input_file.pgm}} > {{path/to/output.sbig}}`

8
pages/common/pgmtost4.md Normal file
View File

@ -0,0 +1,8 @@
# pgmtost4
> Convert a PGM image to the SBIG ST-4 format.
> More information: <https://netpbm.sourceforge.net/doc/pgmtost4.html>.
- Convert a PGM image file to the SBIG ST-4 format:
`pgmtost4 {{path/to/input_file.pgm}} > {{path/to/output.st4}}`

View File

@ -0,0 +1,8 @@
# ppmtowinicon
> This command is superseded by `pamtowinicon`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtowinicon.html>.
- View documentation for the current command:
`tldr pamtowinicon`

View File

@ -0,0 +1,8 @@
# sbigtopgm
> Convert an SBIG CCDOPS file to PGM.
> More information: <https://netpbm.sourceforge.net/doc/sbigtopgm.html>.
- Convert an SBIG CCDOPS image file to PGM:
`sbigtopgm {{path/to/input_file.sbig}} > {{path/to/output.pgm}}`

8
pages/common/st4topgm.md Normal file
View File

@ -0,0 +1,8 @@
# st4topgm
> Convert an SBIG ST-4 file to PGM.
> More information: <https://netpbm.sourceforge.net/doc/st4topgm.html>.
- Convert an SBIG ST-4 file to a PGM file:
`st4topgm {{path/to/input_file.st4}} > {{path/to/output.pgm}}`

View File

@ -0,0 +1,20 @@
# winicontopam
> Convert a Windows ICO file to a PAM file.
> More information: <https://netpbm.sourceforge.net/doc/winicontopam.html>.
- Read an ICO file and convert the best quality image contained therein to the PAM format:
`winicontopam {{path/to/input_file.ico}} > {{path/to/output.pam}}`
- Convert all images in the input file to PAM:
`winicontopam -allimages {{path/to/input_file.ico}} > {{path/to/output.pam}}`
- Convert the n'th image in the input file to PAM:
`winicontopam -image {{n}} {{path/to/input_file.ico}} > {{path/to/output.pam}}`
- If the image(s) to be extracted contain graded transparency data and an AND mask, write the AND mask into the fifth channel of the output PAM file:
`winicontopam -andmasks {{path/to/input_file.ico}} > {{path/to/output.pam}}`

View File

@ -0,0 +1,8 @@
# winicontoppm
> This command is superseded by `winicontopam`.
> More information: <https://netpbm.sourceforge.net/doc/winicontoppm.html>.
- View documentation for the current command:
`tldr winicontopam`