• 安装
1
conda install pillow
  • 围绕非中心点旋转
1
2
3
from PIL import Image
im = Image.new("RGB", (100, 100))
resultIm = im.rotate(45, center=(25, 25))