Open Image in Python PIL

# Imports PIL module 
from PIL import Image 

# open method used to open different extension image file 
im = Image.open(r"C:\Users\System-Pc\Desktop\ybear.jpg") 

# This method will show image in any image viewer 
im.show() 
# Imports PIL module 
from PIL import Image 

# open method used to open different extension image file 
im = Image.open(r"C:\Users\System-Pc\Desktop\lion.png") 

# This method will show image in any image viewer 
im.show() 

References
https://www.geeksforgeeks.org/python-pil-image-open-method/