HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pnmtopalm — Convert a PNM image to a Palm bitmap. More information: <https://netpbm.sourceforge.net/doc/pnmtopal

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandpalmconvertcliimagepnmtopalmbitmappnm

Problem

How to use the pnmtopalm command: Convert a PNM image to a Palm bitmap. More information: <https://netpbm.sourceforge.net/doc/pnmtopalm.html>.

Solution

pnmtopalm — Convert a PNM image to a Palm bitmap. More information: <https://netpbm.sourceforge.net/doc/pnmtopalm.html>.

Convert a PNM image to a Palm bitmap:
pnmtopalm {{path/to/file.pnm}} > {{path/to/file.palm}}


Specify the color depth of the resulting bitmap:
pnmtopalm {{[-dep|-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 {{[-c|-colormap]}} {{path/to/file.pnm}} > {{path/to/file.palm}}


Specify the bitmap's density:
pnmtopalm {{[-den|-density]}} {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}

Code Snippets

Convert a PNM image to a Palm bitmap

pnmtopalm {{path/to/file.pnm}} > {{path/to/file.palm}}

Specify the color depth of the resulting bitmap

pnmtopalm {{[-dep|-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 {{[-c|-colormap]}} {{path/to/file.pnm}} > {{path/to/file.palm}}

Specify the bitmap's density

pnmtopalm {{[-den|-density]}} {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}

Context

tldr-pages: common/pnmtopalm

Revisions (0)

No revisions yet.