pamtotiff, pbmtowbmp, pnmtotiff, pnmtotiffcmyk, tifftopnm, wbmptopbm: add pages (#11408)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
pull/23/head
Juri Dispan 2023-11-08 14:08:06 +01:00 committed by GitHub
parent f7b68d70a1
commit f96c1b6848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 76 additions and 0 deletions

16
pages/common/pamtotiff.md Normal file
View File

@ -0,0 +1,16 @@
# pamtotiff
> Convert a PAM image to a TIFF file.
> More information: <https://netpbm.sourceforge.net/doc/pamtotiff.html>.
- Convert a PAM image to a TIFF image:
`pamtotiff {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}`
- Explicitly specify a compression method for the output file:
`pamtotiff -{{none|packbits|lzw|g3|g4|flate|adobeflate}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}`
- Always produce a color TIFF image, even if the input image is greyscale:
`pamtotiff -color {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}`

View File

@ -0,0 +1,8 @@
# pbmtowbmp
> Convert a PBM image to a wireless bitmap file.
> More information: <https://netpbm.sourceforge.net/doc/pbmtowbmp.html>.
- Convert a PBM image to a WBMP file:
`pbmtowbmp {{path/to/input_file.pbm}} > {{path/to/output_file.wbmp}}`

View File

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

View File

@ -0,0 +1,16 @@
# pnmtotiffcmyk
> Convert a PNM image to a CMYK encoded TIFF.
> More information: <https://netpbm.sourceforge.net/doc/pnmtotiffcmyk.html>.
- Convert a PNM image to a CMYK encoded TIFF:
`pnmtotiffcmyk {{path/to/input_file.pnm}} > {{path/to/output_file.tiff}}`
- Specify the TIFF compression method:
`pnmtotiffcmyk -{{none|packbits|lzw}} {{path/to/input_file.pnm}} > {{path/to/output_file.tiff}}`
- Control the fill order:
`pnmtotiffcmyk -{{msb2lsb|lsb2msb}} {{path/to/input_file.pnm}} > {{path/to/output_file.tiff}}`

20
pages/common/tifftopnm.md Normal file
View File

@ -0,0 +1,20 @@
# tifftopnm
> Convert a TIFF image to a PNM image.
> More information: <https://netpbm.sourceforge.net/doc/tifftopnm.html>.
- Convert a TIFF to a PNM file:
`tifftopnm {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`
- Create a PGM file containing the alpha channel of the input image:
`tifftopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`
- Respect the `fillorder` tag in the input TIFF image:
`tifftopnm -respectfillorder {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`
- Print TIFF header information to `stderr`:
`tifftopnm -headerdump {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}`

View File

@ -0,0 +1,8 @@
# wbmptopbm
> Convert a wireless bitmap file to a PBM image.
> More information: <https://netpbm.sourceforge.net/doc/wbmptopbm.html>.
- Convert a WBMP file to a PBM image:
`wbmptopbm {{path/to/input_file.wbpm}} > {{path/to/output_file.pbm}}`