from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
import glob, os
size = 128, 128
for infile in glob.glob("*.jpg"):
file, ext = os.path.splitext(infile)
with Image.open(infile) as im:
im.thumbnail(size)
im.save(file + ".thumbnail", "JPEG")
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()
from PIL import Image
with Image.open("hopper.jpg") as im:
im.rotate(45).show()