Created
March 22, 2018 16:36
-
-
Save mustafaxfe/64fb24036f0e91e00679fa7ebe62816a to your computer and use it in GitHub Desktop.
Rotate images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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