| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

python改变图片尺寸

from PIL import Image    def change_image_size(image_path,size=(600,600)):      img = Image.open(image_path)          img = img.resize(size)          #img.thumbnail(size,Image.ANTIALIAS) //缩放          img.save('./result.jpg')    change_image_size('image.jpg')