이 프로그램에서는 베개 라이브러리를 사용하여 이미지를 회전합니다. Image 클래스의 rotate() 함수는 회전 각도를 받습니다.
원본 이미지

알고리즘
Step1: Import Image class from Pillow. Step 2: Open the image. Step 3: Rotate the image. Step 4: Display the output.
예시 코드
from PIL import Image
im = Image.open('testimage.jpg')
im.rotate(45).show() 출력
