記住這個 resize()方法
from PIL import Image
img=Image.open("test.png")
x,y=img.size
print(x,y)
k=5
x=int(x*k)
y=int(y*k)
newimg=img.resize((x,y),Image.ANTIALIAS)
newimg.show()
newimg.save("touming.png")
記住這個 resize()方法
from PIL import Image
img=Image.open("test.png")
x,y=img.size
print(x,y)
k=5
x=int(x*k)
y=int(y*k)
newimg=img.resize((x,y),Image.ANTIALIAS)
newimg.show()
newimg.save("touming.png")