Skip to content

Instantly share code, notes, and snippets.

@mustafaxfe
Created March 22, 2018 16:36
Show Gist options
  • Save mustafaxfe/64fb24036f0e91e00679fa7ebe62816a to your computer and use it in GitHub Desktop.
Save mustafaxfe/64fb24036f0e91e00679fa7ebe62816a to your computer and use it in GitHub Desktop.
Rotate images
from PIL import Image
for i in range(5,360, 5):
img = Image.open("frame2163.jpg")
img2 = img.rotate(i)
img2.save("img_1_%d.jpg"%i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment