Using the awesome Pillow library:
>>> from PIL import Image
>>> img = Image.open('test.png')
>>> img.show()
This will open the image in your default image viewer.
More Related Contents:
- Could not open resource file, pygame error: “FileNotFoundError: No such file or directory.”
- Use pytesseract OCR to recognize text from an image
- Matplotlib (pyplot) savefig outputs blank image
- Detect image orientation angle based on text direction
- OpenCV giving wrong color to colored images on loading
- In Python, how do I read the exif data for an image?
- Python: The _imagingft C module is not installed
- PIL: Convert Bytearray to Image
- Compare two images the python/linux way
- scipy: savefig without frames, axes, only content
- how to convert an RGB image to numpy array?
- Cannot Display an Image in Tkinter [duplicate]
- Getting list of pixel values from PIL
- Python OpenCV load image from byte string
- PIL and pygame.image
- How to convert a grayscale image into a list of pixel values?
- Finding connected components in a pixel-array
- How to read a raw image using PIL?
- How to reverse a color map image to scalar values?
- How to crop the internal area of a contour?
- Convert PIL Image to byte array?
- how to remove background of images in python
- Image on a button
- Equivalent of copyTo in Python OpenCV bindings?
- Combine 3 separate numpy arrays to an RGB image in Python
- module’ object has no attribute ‘drawMatches’ opencv python
- Python 3: I am trying to find find all green pixels in an image by traversing all pixels using an np.array, but can’t get around index error
- How to store an image in a variable
- 2D Convolution in Python similar to Matlab’s conv2
- 3D Scatter Plot with Images as Annotations