palmtopnm, pnmtopalm: add pages

This commit is contained in:
Juri Dispan 2023-12-15 11:09:23 +01:00
parent a95bc099de
commit 4ee8c0bfef
2 changed files with 48 additions and 0 deletions

24
pages/linux/palmtopnm.md Normal file
View File

@ -0,0 +1,24 @@
# palmtopnm
> Convert Palm bitmap to a PNM image.
> More information: <https://netpbm.sourceforge.net/doc/palmtopnm.html>.
- 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}}`

24
pages/linux/pnmtopalm.md Normal file
View File

@ -0,0 +1,24 @@
# pnmtopalm
> Convert a PNM image to a Palm bitmap.
> More information: <https://netpbm.sourceforge.net/doc/pnmtopalm.html>.
- 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}}`