sgitopnm

Convert SGI images to PNM format

TLDR

Convert SGI image to PNM
$ sgitopnm [input.rgb] > [output.pnm]
Extract specific channel (0=red, 1=green, 2=blue)
$ sgitopnm -channel [0] [input.rgb] > [output.pgm]
Convert with verbose output showing image information
$ sgitopnm -verbose [input.rgb] > [output.pnm]

SYNOPSIS

sgitopnm [options] [file]

DESCRIPTION

sgitopnm converts Silicon Graphics image format (SGI RGB) to PNM (Portable aNyMap). SGI images typically use .rgb, .rgba, or .bw extensions. Single-channel images produce PGM output; multi-channel images produce PPM. Part of the Netpbm toolkit.

PARAMETERS

-channel n

Extract specific channel (0=red, 1=green, 2=blue).
-verbose
Print image information.

INSTALL

sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm

SEE ALSO

pnmtosgi(1), rletopnm(1)