CmdID / Commands
pnmtorast
Convert a PNM file to a Sun rasterfile. tldr-pages
On several platforms
Convert a PNM image to a RAST image
pnmtorast path/to/input.pnm >path/to/output.rastIdentify
Force either RT_STANDARD or RT_BYTE_ENCODED form for the output
pnmtorast -standard path/to/input.pnm >path/to/output.rastIdentify