2023-10-19 09:01:46 +01:00
|
|
|
# palmtopnm
|
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
> Convert a Palm bitmap file to a PNM image.
|
2023-10-19 09:01:46 +01:00
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/palmtopnm.html>.
|
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
- Convert a Palm bitmap to a PNM image:
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
`palmtopnm {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
- Display information about the input file:
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
`palmtopnm -verbose {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
- Convert the n'th rendition of the image contained in the input file:
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
`palmtopnm -rendition {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
- Write a histogram of the colors in the input file to `stdout`:
|
2023-10-19 09:01:46 +01:00
|
|
|
|
2023-12-17 16:15:54 +00:00
|
|
|
`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}}`
|