【发布时间】:2021-03-18 07:11:06
【问题描述】:
当我打开一个高于宽度(纵向)的图像时,图像 逆时针旋转 90 度。
from PIL import ImageTk, Image
from pathlib import Path
wd = Path.cwd()
fn = wd / 'sample.jpg'
path = str(fn)
img = Image.open(path)
img.show()
【问题讨论】:
标签: python image rotation python-imaging-library