Images

* Images.open * size * crop * resize * rotate * paste * color Transparency * putalha * Save

### Pillow -- PIL -- pip install pillow
from PIL import Image
computer = Image.open('example.jpg')
computer
computer.size
(1993, 1257)
computer.resize((100,100))
computer
computer.rotate(90)
halfway = 1993/2

x = halfway - 200
w = halfway + 200

y = 800
h = 1257

new = computer.crop((x,y,w,h))
computer = computer.paste(new, (0,0))
computer

Color Transparentc

RGB - Red, Green, Blue

red = Image.open('red_color.jpg')
red
red.putalpha(150)
red
red
red.save('red_save.jpg')