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
From documentation:
Matplotlib can only read PNGs natively. Further image formats are supported via the optional dependency on Pillow.
So in case of PNG we may use plt.imread(). In other cases it's probably better to use Pillow directly.
PNG
plt.imread()
Pillow