How to extract frames from a GIF file preserving frame dimensions

∥☆過路亽.° 提交于 2020-01-11 15:04:41

问题


I have the following GIF image file:

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?


回答1:


Use the -coalesce option:

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



来源:https://stackoverflow.com/questions/12791505/how-to-extract-frames-from-a-gif-file-preserving-frame-dimensions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!