phpman > man > sgitopnm(1)

Markdown | JSON | MCP    

TLDR: sgitopnm (tldr-pages)

Convert an SGI file to a PNM file.

  • Convert an SGI image to a PNM file
    sgitopnm {{path/to/input.sgi}} > {{path/to/output.pnm}}
  • Display information about the SGI file
    sgitopnm {{-verb|-verbose}} {{path/to/input.sgi}} > {{path/to/output.pnm}}
  • Extract channel n of the SGI file
    sgitopnm {{-c|-channel}} {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}
sgitopnm(1)                            General Commands Manual                           sgitopnm(1)



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

SYNOPSIS
       sgitopnm [-verbose] [-channel c] [SGIfile]

DESCRIPTION
       Reads an SGI image file as input.  Produces a PGM image for a 2-dimensional (1 channel) input
       file, and a PPM image for a 3-dimensional (3 or more channels) input file.

       Alternatively, produces a PGM image of any one of the channels in the input file.


OPTIONS
       -verbose
              Give some information about the SGI image file.

       -channel c
              Extract channel c of the image as a PGM image.  Without this option, sgitopnm extracts
              the first 3 channels as a PPM image or, if the input has only 1 channel, extracts that
              as a PGM image, and if the input has 2 channels, fails.


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), pnmtosgi(1)


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




                                             29 Jul 2000                                 sgitopnm(1)

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