Python圖像旋轉任意角度

import PIL.Image ls=input("請輸入一個角度:") im1 = PIL.Image.open('d:/abc/1.jpg')#打開圖片路徑 im2 = im1.rotate(360-eval(ls)) im2.show() im2.save("d:/abc/2.jpg")#保存路徑
相關文章
相關標籤/搜索