import os
from PIL import Image
fileplace='................你的路径.....'
images = os.listdir(fileplace)
for img in images:
image=Image.open(fileplace+img)
name=os.path.splitext(img)[0]
image.save('C:/Users/10439/Desktop/111/'+name+'.jpg')
修改图片格式并改变路径
猜你喜欢
转载自www.cnblogs.com/10439-y/p/11788163.html
今日推荐
周排行