from PIL import Imageimage = Image.open("p7_pikachu.jpg")image.show()print(image.size)(728, 1024)
image = image.resize((480,320))print(image.size)(480, 320)
image = image.resize((480,320)).rotate(15)image.show()image = image.resize((480,320)).rotate(15).crop((30,30,450,290))image.show()from PIL import Imagepikachu = Image.open("p7_pikachu.jpg")print(pikachu.size)#pikachu.show()space = Image.open("p7_space.jpg")print(space.size)#space.show()space.rotate(90,expand=True).sizepikachu.crop((146,8,581,1016)).sizepikachu_in_space = Image.blend(pikachu.crop((146,8,581,1016)), space.rotate(90,expand=True).resize((435, 1008)), 0.5)pikachu_in_space.show()#pikachu_in_space.save("pikachu_in_space.jpg")