import image pytohn code example
Example 1: import Image
pip install pillow
from PIL import Image, ImageDraw
Example 2: how to write a script to display an image in python
>>> from PIL import Image
>>> img = Image.open('test.png')
>>> img.show()