pillow 图像读写操作

来源:互联网 发布:淘宝商家进货渠道 编辑:程序博客网 时间:2024/06/06 00:26

1. 图像读写操作

# coding:utf-8# coding:cp936import PILfrom PIL import Imageimport osos.chdir("E:\photo")im = Image.open(r"E:\photo\test.png")im2 = Image.Image()print imprint im2# im.show()im.save(r"E:\photo\test2.png")
原创粉丝点击