python open image with pil code example Example: pil python image Click to copyfrom PIL import Image im = Image.open("bride.jpg") im.rotate(45).show()