一、PIL
PIL全称是:Python Imaging Library。
PIL是一个强大的、方便的python图像处理库,功能非常强大,曾经一度被认为是python平台事实上的图像处理标准库,不过Python 2.7以后不再支持。
PIL官方网站:
http://pythonware.com/products/pil/
二、Pillow
Pillow是基于PIL模块fork的一个派生分支,但如今已经发展成为比PIL本身更具活力的图像处理库。

Pillow友好支持python3,目前pypi上最新版本是Pillow 7.2.0。
Pillow官方文档地址:
https://pillow.readthedocs.io/en/stable/
python3安装pillow:
pip install Pillow
简单使用Pillow:
# 从Pillow导入Image模块
from PIL import Image
# 打开图片bride.jpg
im = Image.open("bride.jpg")
# 显示图片
im.rotate(45).show()
到此,PIL和Pillow介绍完毕!
END.










