How to extract frames from a GIF file preserving frame dimensions
Use the -coalesce
option:
convert -coalesce brocoli.gif out%05d.pgm
You can use graphicsmagick:
gm convert Test.gif +adjoin Test_image%3d.png
or
gm convert Test.gif -coalesce +adjoin Test_image%3d.png
.