「Pillow/PIL」Note on Image Module

Sina Weibo:小锋子Shawn
Tencent E-mail:[email protected]
http://blog.csdn.net/dgyuanshaofeng/article/details/80345185

基于 Pillow 5.0.0,文档
Image Module,文档

Image.convert,对图像进行转换,mode有[L, RGB, CMYK],但是matrix仅支持[L, RGB]。

Image.resize,对图像进行resize,resample方法有[NEAREST, BOX, BILINEAR, HAMMING, BICUBIC, LANCZOS]。

PIL.Image.size,返回图像大小[width, height]。

猜你喜欢

转载自blog.csdn.net/dgyuanshaofeng/article/details/80345185
今日推荐