Search code examples
pythonpython-imaging-library

Image rotation in Pillow


I have an image and I want to transpose it by 30 degrees. Is it possible to do by using something like the following?

spinPicture003 = Picture003.transpose(Image.Rotate_30)

Solution

  • To rotate 30 degrees counter clockwise around its center use:

    spinPicture003 = Picture003.rotate(30)