phpman > man > pnmtosgi(1)

Markdown | JSON | MCP    

TLDR: pnmtosgi (tldr-pages)

Convert a PNM file to an SGI image file.

  • Convert a PNM image to an SGI image
    pnmtosgi {{path/to/input.pnm}} > {{path/to/output.sgi}}
  • Disable or enable compression
    pnmtosgi -{{verbatim|rle}} {{path/to/input.pnm}} > {{path/to/output.sgi}}
  • Write the specified string into the SGI image header's `imagename` field
    pnmtosgi {{-i|-imagename}} {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}
pnmtosgi(1)                            General Commands Manual                           pnmtosgi(1)



NAME
       pnmtosgi - convert a portable anymap to a SGI image file

SYNOPSIS
       pnmtosgi [-verbatim|-rle] [-imagename Name] [pnmfile]

DESCRIPTION
       Reads  a  portable anymap as input. Produces an SGI image file as output.  The SGI image will
       be 2-dimensional (1 channel) for PBM and PGM input, and 3-dimensional (3 channels) for PPM.

OPTIONS
       -verbatim
              Write an uncompressed file.

       -rle (default)
              Write a compressed (run length encoded) file.

       -imagename name
              Write the string "name" into the imagename field of the header.  The  name  string  is
              limited  to  79  characters.  If no name is given, pnmtosgi writes "no name" into this
              field.

BUGS
       Probably.

REFERENCES
       SGI Image File Format documentation (draft v0.95) by Paul Haeberli (paul AT sgi.com).  Available
       via ftp at sgi.com:graphics/SGIIMAGESPEC.

SEE ALSO
       pnm(5), sgitopnm(1)

AUTHOR
       Copyright (C) 1994 by Ingo Wilken (Ingo.Wilken AT informatik.de)




                                           29 Januar 1994                                pnmtosgi(1)

Generated by phpman local Author: Che Dong Under GNU General Public License
2026-06-15 06:45 @216.73.216.200
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 TransitionalValid CSS!