LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

giftopnm

Convert GIF images to PNM format

TLDR

Convert GIF to PNM
$ giftopnm [input.gif] > [output.pnm]
copy
Convert specific frame
$ giftopnm --image [2] [input.gif] > [output.pnm]
copy
Show comments
$ giftopnm --comments [input.gif]
copy
Output all frames of an animated GIF
$ giftopnm --all-images [input.gif] > [output.pnm]
copy
Verbose output showing image details
$ giftopnm --verbose [input.gif] > [output.pnm]
copy

SYNOPSIS

giftopnm [options] [file]

DESCRIPTION

giftopnm converts GIF images into the Portable Any Map (PNM) format family, which includes PBM (bitmap), PGM (grayscale), and PPM (color) formats. It is a core component of the Netpbm image processing toolkit.The tool automatically selects the appropriate output format based on the input GIF's color characteristics. For animated GIFs, it can extract individual frames or output all frames sequentially. PNM formats are uncompressed, making them ideal intermediate formats for image processing pipelines.

PARAMETERS

--image num

Select specific image/frame.
--comments
Print image comments.
--all-images
Output all frames.
--verbose
Display information about the GIF input.
--repair
Try to recover corrupted GIF data.

INSTALL

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

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid