From f96c1b6848ce8a30089a067898dc3a55f1924cc9 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Wed, 8 Nov 2023 14:08:06 +0100 Subject: [PATCH] pamtotiff, pbmtowbmp, pnmtotiff, pnmtotiffcmyk, tifftopnm, wbmptopbm: add pages (#11408) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/pamtotiff.md | 16 ++++++++++++++++ pages/common/pbmtowbmp.md | 8 ++++++++ pages/common/pnmtotiff.md | 8 ++++++++ pages/common/pnmtotiffcmyk.md | 16 ++++++++++++++++ pages/common/tifftopnm.md | 20 ++++++++++++++++++++ pages/common/wbmptopbm.md | 8 ++++++++ 6 files changed, 76 insertions(+) create mode 100644 pages/common/pamtotiff.md create mode 100644 pages/common/pbmtowbmp.md create mode 100644 pages/common/pnmtotiff.md create mode 100644 pages/common/pnmtotiffcmyk.md create mode 100644 pages/common/tifftopnm.md create mode 100644 pages/common/wbmptopbm.md diff --git a/pages/common/pamtotiff.md b/pages/common/pamtotiff.md new file mode 100644 index 0000000000..32e635880c --- /dev/null +++ b/pages/common/pamtotiff.md @@ -0,0 +1,16 @@ +# pamtotiff + +> Convert a PAM image to a TIFF file. +> More information: . + +- 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}}` diff --git a/pages/common/pbmtowbmp.md b/pages/common/pbmtowbmp.md new file mode 100644 index 0000000000..6cb3a1dd74 --- /dev/null +++ b/pages/common/pbmtowbmp.md @@ -0,0 +1,8 @@ +# pbmtowbmp + +> Convert a PBM image to a wireless bitmap file. +> More information: . + +- Convert a PBM image to a WBMP file: + +`pbmtowbmp {{path/to/input_file.pbm}} > {{path/to/output_file.wbmp}}` diff --git a/pages/common/pnmtotiff.md b/pages/common/pnmtotiff.md new file mode 100644 index 0000000000..f6737d90cd --- /dev/null +++ b/pages/common/pnmtotiff.md @@ -0,0 +1,8 @@ +# pnmtotiff + +> This command is superseded by `pamtotiff`. +> More information: . + +- View documentation for the current command: + +`tldr pamtotiff` diff --git a/pages/common/pnmtotiffcmyk.md b/pages/common/pnmtotiffcmyk.md new file mode 100644 index 0000000000..7436e7837a --- /dev/null +++ b/pages/common/pnmtotiffcmyk.md @@ -0,0 +1,16 @@ +# pnmtotiffcmyk + +> Convert a PNM image to a CMYK encoded TIFF. +> More information: . + +- 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}}` diff --git a/pages/common/tifftopnm.md b/pages/common/tifftopnm.md new file mode 100644 index 0000000000..56c6ae40a3 --- /dev/null +++ b/pages/common/tifftopnm.md @@ -0,0 +1,20 @@ +# tifftopnm + +> Convert a TIFF image to a PNM image. +> More information: . + +- 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}}` diff --git a/pages/common/wbmptopbm.md b/pages/common/wbmptopbm.md new file mode 100644 index 0000000000..59d056d390 --- /dev/null +++ b/pages/common/wbmptopbm.md @@ -0,0 +1,8 @@ +# wbmptopbm + +> Convert a wireless bitmap file to a PBM image. +> More information: . + +- Convert a WBMP file to a PBM image: + +`wbmptopbm {{path/to/input_file.wbpm}} > {{path/to/output_file.pbm}}`