From 1fad62acf077788aa5266935b76831e2350c9099 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 25 Apr 2014 02:48:09 +0000 Subject: miscellaneous update git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@2195 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- sgitopnm.html | 80 ++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 46 insertions(+), 34 deletions(-) (limited to 'sgitopnm.html') diff --git a/sgitopnm.html b/sgitopnm.html index c0f23f01..76671f6c 100644 --- a/sgitopnm.html +++ b/sgitopnm.html @@ -2,16 +2,15 @@ Sgitopnm User Manual

sgitopnm

-Updated: 29 Jul 2000 +Updated: 25 April 2014
Table Of Contents -  +

NAME

sgitopnm - convert a SGI image file to PNM -  -

SYNOPSIS

+

SYNOPSIS

sgitopnm @@ -19,68 +18,81 @@ sgitopnm - convert a SGI image file to PNM [-channel c] -[SGIfile] +[SgiFileName] + -  -

DESCRIPTION

+

DESCRIPTION

This program is part of Netpbm.

sgitopnm reads an SGI image file as input and produces a PGM -image for a 2-dimensional (1 channel) input file, and a PPM image for +image for a 2-dimensional (1- or 2-channel) input file, and a PPM image for a 3-dimensional (3 or more channels) input file.

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

OPTIONS

+

Before Netpbm 10.67 (June 2014), sgitopnm does not work on 2-channel +SGI images. It fails if you try. + +

If you don't specify the SgiFileName argument, input is from +Standard Input. + +

Before Netpbm 10.67 (June 2014), sgitopnm requires its input to +be a seekable file, so for example you can't feed it from a pipe. + + +

OPTIONS

-verbose
Give some information about the SGI image file. -
-channel c +
-channel n + +
Extract channel n 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 1 or 2 channels, extracts the first channel as a +PGM image. -

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. +

A 2-channel image is grayscale plus alpha (transparency), so you can get +the transparency information with -channel=2. You could then +combine them into a PAM image of tuple type GRAYSCALE_ALPHA with +pamstack.

-  -

REFERENCES

+

REFERENCES

SGI Image File Format documentation (draft v0.95) by Paul Haeberli (paul@sgi.com). Available via ftp at +HREF="mailto:paul@sgi.com">paul@sgi.com). Available via FTP at sgi.com:graphics/SGIIMAGESPEC. -  -

SEE ALSO

+

SEE ALSO

pnm, +pam, +pnmtosgi, +pamstack -pnmtosgi -  -

AUTHOR

+

AUTHOR

-

Copyright (C) 1994 by Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de) +

Copyright (C) 1994 by Ingo Wilken +( +Ingo.Wilken@informatik.uni-oldenburg.de)


-  -

Table Of Contents

+

Table Of Contents

-- cgit 1.4.1