How to extract frames from a GIF file preserving frame dimensions

前端 未结 2 1449
挽巷
挽巷 2021-01-30 10:20

I have the following GIF image file:

\"original

I want to extract its frames (using PGM output

相关标签:
2条回答
  • 2021-01-30 10:56

    You can use graphicsmagick:

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

    or

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

    0 讨论(0)
  • 2021-01-30 11:06

    Use the -coalesce option:

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

    0 讨论(0)
提交回复
热议问题