python show png

Solutions on MaxInterview for python show png by the best coders in the world

showing results for - "python show png"
Lena
29 Jul 2017
1%pylab inline
2import matplotlib.pyplot as plt
3import matplotlib.image as mpimg
4img = mpimg.imread('your_image.png')
5imgplot = plt.imshow(img)
6plt.show()
7
Rhys
06 Oct 2016
1from PIL import Image
2
3image = Image.open('image.jpg')
4image.show()
5
Abagail
16 Feb 2020
1from PIL import Image
2
3image = Image.open('image.jpg')
4image.show()