I am trying to read a png image in python. The imread function in scipy is being deprecated and they recommend using imageio
png
imread
scipy
imageio
With matplotlib you can use (as shown in the matplotlib documentation)
import matplotlib.pyplot as plt import matplotlib.image as mpimg img=mpimg.imread('image_name.png')
And plot the image if you want
imgplot = plt.imshow(img)