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.

SEE ALSO

Copied to clipboard
Kai