跳至内容
Python 俱乐部
用户工具
登录
站点工具
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
modules:pil:start
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
====== Python 图像处理模块 PIL(Python Image Library) ====== ===== 1. 简介 ===== 这两天用python写一个程序,需要对各种格式的图片进行一些简单的处理,采用了Python Imaging Library (PIL)库,这个库可用于图片的一些常用操作,比如改变图片格式、尺寸、色彩、旋转等。 * pil站点: http://www.pythonware.com/products/pil/index.htm * pil下载: http://effbot.org/downloads/Imaging-1.1.6.tar.gz * pil文档: http://www.pythonware.com/library/pil/handbook/index.htm ===== 2. 安装 ===== <code shell> $ gunzip Imaging-1.1.6.tar.gz $ tar xvf Imaging-1.1.6.tar $ cd Imaging-1.1.6 $ python setup.py build_ext -i $ python selftest.py $ python setup.py install </code> 安装完毕后,可在python安装目录下的site-packages找到PIL安装目录。 ===== 3. 使用 ===== 如果你想使用PIL的Image类,就直接import Image即可,详细的使用方法请阅读其文档。 * [[modules:pil:convert-png-gif]] * [[modules:pil:simple-examples]] ===== 4. 参考 ===== * http://infohost.nmt.edu/tcc/help/pubs/pil/
modules/pil/start.txt
· 最后更改: 2010/06/02 01:18 (外部编辑)
页面工具
显示页面
修订记录
反向链接
回到顶部