Last modified: Jan 10, 2023 By Alexander Williams
Python-Pillow: How to Show an image in Python
show() is a Pil method that opens and shows an image with your default image viewer. This method helps us show the modification of an image while keeping the original image.
We'll see how to use the show() method with examples in this tutorial.
The show() method works with no arguments.
In the following example, we'll open an image and show it with the show().
from PIL import Image # Open Image im = Image.open("py.jpg") # Show Image im.show()
Now, let's Rotate the image and show it.
# Open Image im = Image.open("py.jpg") # Rotated Image im = im.rotate(45) # Show Image im.show()