我想更改 gif 动画的循环 header 值,特别是 this one :
attribution: Gonfer at en.wikipedia
我正在尝试使用 python imaging library, PIL , 并根据 another question 提出以下内容.
import PIL as p
a=p.Image.open('Unfasor.gif')
loop = a.info['loop']
a.save('out.gif',loop=10)
这会重新保存 gif,但它不再是动画。
请注意循环属性的值目前为 0:
>>> a.info
{'duration': 0, 'version': 'GIF89a', 'loop': 0, 'extension': ('NETSCAPE2.0', 27L)}
如何导出为具有非零循环值的工作动画 gif?我愿意使用其他库。
注意。我这样做的原因是 I'd like to put the image into a powerpoint-2007 presentation并且有 seen suggestions that this loop value is a limiting factor .
请您参考如下方法:
在我的机器上,使用 PowerPoint 2011,此图像按原样工作。
请注意,它在“编辑”模式下不是动画,但在“幻灯片放映”模式下它会像上面一样显示动画。
您使用的是哪个版本的 PowerPoint?你试过幻灯片放映模式了吗?
我希望编辑模式下的非动画是故意的。当您进行幻灯片布局时,我可以看出这变得非常乏味 :)
