pnmtosgi

Convert PNM to SGI image format

TLDR

Convert PNM to SGI image
$ pnmtosgi [input.pnm] > [output.rgb]
Use RLE compression
$ pnmtosgi -rle [input.pnm] > [output.rgb]

SYNOPSIS

pnmtosgi [options] [file]

DESCRIPTION

pnmtosgi converts PNM images to SGI (Silicon Graphics) image format. Part of Netpbm toolkit.

PARAMETERS

-verbatim

No compression (default).
-rle
Use RLE compression.
-imagename name
Set the image name field stored inside the SGI file.
-mtime seconds
Set the modification time stored inside the file.

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

sgitopnm(1), pnmtorle(1)