我试图使用 PIL 创建一个 gif,如下所述:http : //www.pythoninformer.com/python-libraries/pillow/creating-animated-gif/
以及他们显示的将一堆图像“名称”保存到 gif 中的代码:
# Open all the frames
images = []
for n in names:
frame = Image.open(n)
images.append(frame)
# Save the frames as an animated GIF
images[0].save('anicircle.gif',
save_all=True,
append_images=images[1:],
duration=100,
loop=0)
但是,保存 gif 时它只保存一张图像,我做错了什么?我在 python 2.7 中使用 PIL 版本 1.1.7
慕慕森
相关分类