python 2.7 pillow code example
Example 1: install python image library
pip install pillow
Example 2: python pil
from PIL import Image
img = Image.open("./my_image.png")
pip install pillow
from PIL import Image
img = Image.open("./my_image.png")