如何从保留框架尺寸的GIF文件中提取框架 [英] How to extract frames from a GIF file preserving frame dimensions
本文介绍了如何从保留框架尺寸的GIF文件中提取框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下GIF图像文件:
I have the following GIF image file:
我想使用此imagemagick命令提取其帧(使用PGM输出格式):
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.
如何在保留原始gif文件大小的同时提取其帧?
How can I extract its frames while preserving the original gif file size?
推荐答案
使用-coalesce
选项:
convert -coalesce brocoli.gif out%05d.pgm
这篇关于如何从保留框架尺寸的GIF文件中提取框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文