icontopbm

converts a Sun icon file to PBM format

TLDR

Convert icon to PBM
$ icontopbm [file.icon] > [output.pbm]
Convert from stdin
$ cat [file.icon] | icontopbm > [output.pbm]
Convert and pipe to PNG via Netpbm tools
$ icontopbm [file.icon] | pnmtopng > [output.png]

SYNOPSIS

icontopbm [iconfile]

DESCRIPTION

icontopbm converts a Sun icon file to PBM (Portable Bitmap) format. Sun icon files are a simple bitmap format historically used by Sun Microsystems workstations for desktop icons. The output is written to standard output in PBM format, which can be piped to other Netpbm tools for further conversion.Part of the Netpbm package of graphics manipulation tools.

PARAMETERS

iconfile

Sun icon format input file. If not specified, reads from standard input.

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

CAVEATS

Only reads Sun icon format files. The format is largely obsolete, but conversion may be needed for legacy file archives.

SEE ALSO

pbmtoicon(1), xbmtopbm(1), netpbm(1)