From 4ee8c0bfef193f075564ba4b22ff148944c416f8 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 11:09:23 +0100 Subject: [PATCH 1/4] palmtopnm, pnmtopalm: add pages --- pages/linux/palmtopnm.md | 24 ++++++++++++++++++++++++ pages/linux/pnmtopalm.md | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pages/linux/palmtopnm.md create mode 100644 pages/linux/pnmtopalm.md diff --git a/pages/linux/palmtopnm.md b/pages/linux/palmtopnm.md new file mode 100644 index 0000000000..9ed62a3f78 --- /dev/null +++ b/pages/linux/palmtopnm.md @@ -0,0 +1,24 @@ +# palmtopnm + +> Convert Palm bitmap to a PNM image. +> More information: . + +- Convert Palm bitmap to a PNM image: + +`palmtopnm {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- Display information about the input file: + +`palmtopnm -verbose {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- Convert the n'th rendition of the image contained in the input file: + +`palmtopnm -rendition {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- Write a histogram of the colors in the input file to `stdout`: + +`palmtopnm -showhist {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- Output the transparent color of the input image if set: + +`palmtopnm -transparent {{path/to/file.palm}}` diff --git a/pages/linux/pnmtopalm.md b/pages/linux/pnmtopalm.md new file mode 100644 index 0000000000..01ccc52389 --- /dev/null +++ b/pages/linux/pnmtopalm.md @@ -0,0 +1,24 @@ +# pnmtopalm + +> Convert a PNM image to a Palm bitmap. +> More information: . + +- Convert PNM image to a Palm bitmap: + +`pnmtopalm {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- Specify the color depth of the resulting bitmap: + +`pnmtopalm -depth {{1|2|4|8|16}} {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- Choose a compression method for the resulting bitmap: + +`pnmtopalm -{{scanline_compression|rle_compression|packbits_compression}} {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- Build a custom colormap and include it in the resulting bitmap: + +`pnmtopalm -colormap {{path/to/file.pnm}} > {{path/to/file.palm}}` + +- Specify the bitpap's density: + +`pnmtopalm -density {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}` From b2ca287d3bd1108c2c83e4847d911c8e35fec6a1 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 11:14:40 +0100 Subject: [PATCH 2/4] move to common --- pages/common/palmtopnm.md | 22 +++++++++++++--------- pages/{linux => common}/pnmtopalm.md | 0 pages/linux/palmtopnm.md | 24 ------------------------ 3 files changed, 13 insertions(+), 33 deletions(-) rename pages/{linux => common}/pnmtopalm.md (100%) delete mode 100644 pages/linux/palmtopnm.md diff --git a/pages/common/palmtopnm.md b/pages/common/palmtopnm.md index 1fe4d8ea46..5c7ceb94db 100644 --- a/pages/common/palmtopnm.md +++ b/pages/common/palmtopnm.md @@ -1,20 +1,24 @@ # palmtopnm -> Convert a Palm Bitmap file to a PNM image. +> Convert Palm bitmap file to a PNM image. > More information: . -- Generate the PNM image as output, for a Palm Bitmap file as input: +- Convert Palm bitmap to a PNM image: -`palmtopnm {{path/to/file.palm}}` +`palmtopnm {{path/to/file.palm}} > {{path/to/file.pnm}}` -- Display various information about the input Palm Bitmap file and process: +- Display information about the input file: -`palmtopnm -verbose {{path/to/file.palm}}` +`palmtopnm -verbose {{path/to/file.palm}} > {{path/to/file.pnm}}` -- Generate a histogram of colours in the input Palm Bitmap file to `stderr`: +- Convert the n'th rendition of the image contained in the input file: -`palmtopnm -showhist {{path/to/file.palm}}` +`palmtopnm -rendition {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}` -- Display version: +- Write a histogram of the colors in the input file to `stdout`: -`palmtopnm -version` +`palmtopnm -showhist {{path/to/file.palm}} > {{path/to/file.pnm}}` + +- Output the transparent color of the input image if set: + +`palmtopnm -transparent {{path/to/file.palm}}` diff --git a/pages/linux/pnmtopalm.md b/pages/common/pnmtopalm.md similarity index 100% rename from pages/linux/pnmtopalm.md rename to pages/common/pnmtopalm.md diff --git a/pages/linux/palmtopnm.md b/pages/linux/palmtopnm.md deleted file mode 100644 index 9ed62a3f78..0000000000 --- a/pages/linux/palmtopnm.md +++ /dev/null @@ -1,24 +0,0 @@ -# palmtopnm - -> Convert Palm bitmap to a PNM image. -> More information: . - -- Convert Palm bitmap to a PNM image: - -`palmtopnm {{path/to/file.palm}} > {{path/to/file.pnm}}` - -- Display information about the input file: - -`palmtopnm -verbose {{path/to/file.palm}} > {{path/to/file.pnm}}` - -- Convert the n'th rendition of the image contained in the input file: - -`palmtopnm -rendition {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}` - -- Write a histogram of the colors in the input file to `stdout`: - -`palmtopnm -showhist {{path/to/file.palm}} > {{path/to/file.pnm}}` - -- Output the transparent color of the input image if set: - -`palmtopnm -transparent {{path/to/file.palm}}` From f3f954ebdb07a47bf0619c45ac4bdec149b3f404 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 14:26:01 +0100 Subject: [PATCH 3/4] fix typos --- pages/common/palmtopnm.md | 2 +- pages/common/pnmtopalm.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/palmtopnm.md b/pages/common/palmtopnm.md index 5c7ceb94db..a6eec8f331 100644 --- a/pages/common/palmtopnm.md +++ b/pages/common/palmtopnm.md @@ -3,7 +3,7 @@ > Convert Palm bitmap file to a PNM image. > More information: . -- Convert Palm bitmap to a PNM image: +- Convert a Palm bitmap to a PNM image: `palmtopnm {{path/to/file.palm}} > {{path/to/file.pnm}}` diff --git a/pages/common/pnmtopalm.md b/pages/common/pnmtopalm.md index 01ccc52389..bbd3754d62 100644 --- a/pages/common/pnmtopalm.md +++ b/pages/common/pnmtopalm.md @@ -3,7 +3,7 @@ > Convert a PNM image to a Palm bitmap. > More information: . -- Convert PNM image to a Palm bitmap: +- Convert a PNM image to a Palm bitmap: `pnmtopalm {{path/to/file.pnm}} > {{path/to/file.palm}}` From 521fcbf6e9717254cc98406fe30915e7776d398c Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 18:58:55 +0100 Subject: [PATCH 4/4] Update pages/common/palmtopnm.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/palmtopnm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/palmtopnm.md b/pages/common/palmtopnm.md index a6eec8f331..c818426fe8 100644 --- a/pages/common/palmtopnm.md +++ b/pages/common/palmtopnm.md @@ -1,6 +1,6 @@ # palmtopnm -> Convert Palm bitmap file to a PNM image. +> Convert a Palm bitmap file to a PNM image. > More information: . - Convert a Palm bitmap to a PNM image: