man > pnmtorast(1)

TLDR: pnmtorast (tldr-pages)

Convert a PNM file to a Sun rasterfile.

  • Convert a PNM image to a RAST image
    pnmtorast {{path/to/input.pnm}} > {{path/to/output.rast}}
  • Force either `RT_STANDARD` or `RT_BYTE_ENCODED` form for the output
    pnmtorast -{{standard|rle}} {{path/to/input.pnm}} > {{path/to/output.rast}}
pnmtorast(1)                           General Commands Manual                          pnmtorast(1)



NAME
       pnmtorast - convert a portable pixmap into a Sun rasterfile

SYNOPSIS
       pnmtorast [-standard|-rle] [pnmfile]

DESCRIPTION
       Reads a portable pixmap as input.  Produces a Sun rasterfile as output.

       Color  values  in  Sun rasterfiles are eight bits wide, so pnmtorast will automatically scale
       colors to have a maxval of 255.  An extra pnmdepth step is not necessary.

OPTIONS
       The -standard flag forces the result to be in RT_STANDARD form; the  -rle  flag,  RT_BYTE_EN‐
       CODED, which is smaller but, well, less standard.  The default is -rle.

       All flags can be abbreviated to their shortest unique prefix.

SEE ALSO
       rasttopnm(1), pnm(5)

AUTHOR
       Copyright (C) 1989, 1991 by Jef Poskanzer.



                                           12 January 1991                              pnmtorast(1)

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 20:34 @2600:1f28:365:80b0:b91e:58eb:6587:15c8
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!