Linux command
giftopnm 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Convert GIF to PNM
giftopnm [input.gif] > [output.pnm]
Convert specific frame
giftopnm --image [2] [input.gif] > [output.pnm]
Show comments
giftopnm --comments [input.gif]
Output all frames
giftopnm --all-images [input.gif] > [output.pnm]
Verbose
giftopnm --verbose [input.gif] > [output.pnm]
说明
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.
参数
- --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.
FAQ
What is the giftopnm command used for?
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.
How do I run a basic giftopnm example?
Run `giftopnm [input.gif] > [output.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --image _num_ do in giftopnm?
Select specific image/frame.