pamtogif

converts PAM/PNM images to GIF format

TLDR

Convert PAM to GIF
$ pamtogif [input.pam] > [output.gif]
Create interlaced GIF
$ pamtogif -interlace [input.pam] > [output.gif]
Set transparent color
$ pamtogif -transparent [#ffffff] [input.pam] > [output.gif]

SYNOPSIS

pamtogif [options] [file]

DESCRIPTION

pamtogif converts PAM/PNM images to GIF format. Part of Netpbm toolkit. Automatically reduces colors to 256 for GIF format.

PARAMETERS

-interlace

Create interlaced GIF.
-transparent color
Transparent color.
-alphacolor color
Alpha color.
-comment text
Add comment.

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

giftopnm(1), ppmtogif(1)