SGITOPNM(1)
π SGITOPNM π
okay bestie, welcome to the sgitopnm page from the Netpbm manual (that's the "Sgitopnm User Manual", section 1, General Commands Manual, iykyk) β she converts SGI image files to PNM and honestly? she ate. π
β¨ NAME β¨
sgitopnm β convert a SGI image file to PNM
πΈ SYNOPSIS πΈ
sgitopnm
[-verbose]
[-channel c]
[SgiFileName]
π¦ DESCRIPTION π¦
so this program is part of Netpbm(1), periodt.
sgitopnm reads an SGI image file as input and produces a PGM 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. it's giving "one tool, two outcomes, main character energy." π
alternatively, the program produces a PGM image of any one of the channels in the input file. pick your fave fr fr π
β οΈ before Netpbm 10.67 (June 2014), sgitopnm does not work on 2-channel SGI images. it fails if you try. not "oopsie" fails β like, fails fails. π
if you don't specify the SgiFileName argument, input is from Standard Input. no filename, no problem, she'll read from stdin. π«Ά
π 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. rude, I know. (fixed since tho, slay.)
π OPTIONS π
in addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), sgitopnm recognizes the following command line options:
-verboseβ give some information about the SGI image file. she's spilling the tea about your file's anatomy. π΅-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.
a 2-channel image is grayscale plus 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. grayscale AND the transparency? iconic combo meal. πβ¨
π REFERENCES π
the SGI image format specification version 1.0 is at ftp://ftp.sgi.com/graphics/grafica/sgiimage.html .
there is an example SGI file at https://github.com/ZaaLabs/ZaaIL-TestImages/tree/master/SGI .
π SEE ALSO π
pnm(1), pam(1), pnmtosgi(1), pamstack(1)
π«Ά AUTHOR π«Ά
Copyright (C) 1994 by Ingo Wilken ( Ingo.Wilken@informatik.uni-oldenburg.de )
π DOCUMENT SOURCE π
this manual page was generated by the Netpbm tool 'makeman' from HTML source. the master documentation is at
http://netpbm.sourceforge.net/doc/sgitopnm.html
and that's the whole vibe check bestie π this page came straight from the netpbm documentation, dated 25 April 2014 β go forth and convert those SGI files, you absolute legend π§β¨π
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms