[简介]
这两天用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
[安装]
$ 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
安装完毕后,可在python安装目录下的site-packages找到PIL安装目录。
[使用]
如果你想使用PIL的Image类,就直接import Image即可,详细的使用方法请阅读其文档。
分享到:
相关推荐
Python Imaging Library (PIL) Document from New Mexico Tech.Describes an image-processing library for the Python programming language.
Python-Imaging-Library中文手册、PIL中文手册、python图像处理
Python Imaging Library中文手册、PIL中文手册、python图像处理
由于生成 qrcode 图片需要依赖 Python 的图像库,所以需要先安装 Python 图像库 PIL(Python Imaging Library),不然会遇到 “ImportError: No module named Image” 的错误: 复制代码 代码如下: sudo
此代码使用 Python Imaging Library(PIL) 模块实现空间域数字水印 该代码采用图像输入,该图像已命名为“1.jpg”。当您运行此代码时,在保存代码的文件夹中保留一个名为“1.jpg”的图像,它将生成一个新的图像“2....
一个python的图形处理库 The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing ...
In this book, author Fredrik Lundh, creator of the Python Imaging Library (PIL), delivers tested, accurate documentation of all the modules in the Python Standard Library, along with over 300 ...
PIL(Python Image Library)是python的第三方图像处理库,但是由于其强大的...PIL(Python Imaging Library)是Python一个强大方便的图像处理库,只支持到Python2.7。 Pillow是PIL的一个派生分支,在Python3标准库中用Pi
这是PIL的官方手册,2005年5月6日发布。这个版本涵盖 PIL 1.1.5的全部内容。介绍图形的各种变换及模块,方法,函数的使用。
今天学习Python的时候,需要安装一个第三方库,Python Imaging Library,是Python下面一个非常强大的处理图像的工具库,不过PIL目前只支持到Python2.7版本。 Pillow是PIL的一个派生分之,目前的最新版本是3.0 安装...
Pillow是Python Imaging Library或PIL的友好分支,该库为Python解释器添加了图像处理功能。 为什么要转向枕头? 除了提供广泛的文件格式支持,高效的内部表示以及相当强大的图像处理功能之外,Pillow还与setuptools...
在Python2中,PIL(Python Imaging Library)是一个非常好用的图像处理库,但PIL不支持Python3,所以有人(Alex Clark和Contributors)提供了Pillow,可以在Python3中使用。 官方文档路径:...
使用Python Imaging Library(PIL)来处理图像的RGB值的python代码该代码是有关使用Thorlabs DCx(UC480)单色传感器提取微观元素的特征的研究论文的早期原型。 1-program.py:是将4张照片合并在一起的python代码...
Python Imaging Library Overview
PIL:Python Imaging Library,已经是Python平台事实上的图像处理标准库了。PIL功能非常强大,但API却非常简单易用。 由于PIL仅支持到Python 2.7,加上年久失修,于是一群志愿者在PIL的基础上创建了兼容的版本,名字...
PIL(Python Imaging Library)是Python一个强大方便的图像处理库,名气也比较大。不过只支持到Python 2.7。 PIL官方网站:http://www.pythonware.com/products/pil/ Pillow是PIL的一个派生分支,但如今已经发展成为比...
The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics ...
PIL: Python Imaging Library,是python的图像处理库。由于PIL不兼容setuptools,再加上更新缓慢等因素,Alex Clark等一些社区好心人还是希望能够继续支持PIL,所以fork了PIL,这就是Pillow的缘起。 Pillow的目标 ...
PIL是Python Imaging Library的简称,PIL是一个Python处理图片的库,提供了一系列模块和方法,比如:裁切,平移,旋转,改变尺寸等等。在PIL库中,任何一个图像都是用Image对象来表示的,所以要加载一张图片,最简单...