1 Star 1 Fork 1

taylortaurus/Python-Study

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gif_maker.py 425 Bytes
一键复制 编辑 原始数据 按行查看 历史
Danielyan_1398 提交于 2019-04-24 17:20 +08:00 . update python
import imageio
def create_gif(image_list, gif_name):
frames = []
for image_name in image_list:
frames.append(imageio.imread(image_name))
# Save them as frames into a gif
imageio.mimsave(gif_name, frames, 'GIF', duration=1)
return
if __name__ == "__main__":
image_list = ['Snip20190424_31.png', 'Snip20190424_33.png']
gif_name = 'created_gif.gif'
create_gif(image_list, gif_name)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/taylortaurus/Python-Study.git
git@gitee.com:taylortaurus/Python-Study.git
taylortaurus
Python-Study
Python-Study
master

搜索帮助