From 4ee8c0bfef193f075564ba4b22ff148944c416f8 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Fri, 15 Dec 2023 11:09:23 +0100 Subject: [PATCH] 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}}`