【文件属性】:
文件名称:python批量图片处理简单示例
文件大小:42KB
文件格式:PDF
更新时间:2021-01-20 05:49:34
postfix python python函数
本文实例讲述了python批量图片处理。分享给大家供大家参考,具体如下:
#!/usr/bin/python
#coding:utf-8
import os
from PIL import Image
#源目录
MyPath = 'C:/Users/Eric/Desktop/python_text/20161214/test_Image/'
#输出目录
OutPath = 'C:/Users/Eric/Desktop/python_text/20161214/outpath/'
def processImage(filesoure, destsoure, name, imgtype):