from PIL import Image
def transfer(infile, outfile):
im = Image.open(infile)
print(im.size)
reim=im.resize((295, 413))
reim.save(outfile)
if __name__ == '__main__':
infile=r""
outfile=r""
transfer(infile, outfile)
Python脚本之Resize图片大小
于 2022-06-23 10:24:07 首次发布