李旭分享 http://blog.sciencenet.cn/u/lixujeremy 代码与散打爱好者!

博文

Python: Installing images2gif Package

已有 7499 次阅读 2015-5-18 11:39 |个人分类:Python|系统分类:科研笔记| images2gif

最新版images2gif,开启Windows开始按钮,检索cmd窗口,将cmd当前目录设定在images2gif目录,在cmd命令行键入python setup.py install回车,安装过程在cmd中显示如图 1

1

Python Shell中,输入字符import images2gif回车,无错误信息返回即表示安装成功!

Before installing this package, some code needs to be changed as below.

In images2gif.py change line 200:


for im in images:

   palettes.append( getheader(im)[1] )


to


for im in images:

   palettes.append( im.palette.getdata()[1])





https://wap.sciencenet.cn/blog-1148346-891011.html

上一篇:Matlab: How to insert png image with transparent background
下一篇:Python: Create GIF Image
收藏 IP: 202.112.90.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-22 02:42

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部