How to extract frames from a GIF file preserving f

2020-05-12 11:49发布

I have the following GIF image file:

original gif image

I want to extract its frames (using PGM output format) using this imagemagick command:

convert brocoli.gif out%05d.pgm

But each frame has a different size.

How can I extract its frames while preserving the original gif file size?

2条回答
爷的心禁止访问
2楼-- · 2020-05-12 12:28

Use the -coalesce option:

convert -coalesce brocoli.gif out%05d.pgm

查看更多
Explosion°爆炸
3楼-- · 2020-05-12 12:32

You can use graphicsmagick:

gm convert Test.gif +adjoin Test_image%3d.png

or

gm convert Test.gif -coalesce +adjoin Test_image%3d.png.

查看更多
登录 后发表回答