from PIL import Image #read the image im = Image.open("sample-image.png") #show image im.show()
Here is what the above code is Doing:
1. Importing the Image module from the PIL package.
2. Opening the image using the Image.open() function.
3. Displaying the image using the Image.show() function.