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

rasttopnm — Convert a Sun rasterfile to a PNM file. More information: <https://netpbm.sourceforge.net/doc/rastto

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

Problem

How to use the rasttopnm command: Convert a Sun rasterfile to a PNM file. More information: <https://netpbm.sourceforge.net/doc/rasttopnm.html>.

Solution

rasttopnm — Convert a Sun rasterfile to a PNM file. More information: <https://netpbm.sourceforge.net/doc/rasttopnm.html>.

Convert a RAST image to a PNM file:
rasttopnm {{path/to/input.rast}} > {{path/to/output.pnm}}


Use the color map indices in the raster if they are color values:
rasttopnm {{[-i|-index]}} {{path/to/input.rast}} > {{path/to/output.pnm}}

Code Snippets

Convert a RAST image to a PNM file

rasttopnm {{path/to/input.rast}} > {{path/to/output.pnm}}

Use the color map indices in the raster if they are color values

rasttopnm {{[-i|-index]}} {{path/to/input.rast}} > {{path/to/output.pnm}}

Context

tldr-pages: common/rasttopnm

Revisions (0)

No revisions yet.