📜  魔杖图像调整大小 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:45.956000             🧑  作者: Mango

代码示例1
with Image(filename ='img/image1.jpg') as image:
    width = image.width
    height = image.height

    print(width, height)

    image.resize(50, 60)
    width = image.width
    height = image.height

    print(width, height)
    image.save(filename='img/resized.jpg')