SyntaxFix
Write A Post
Hire A Developer
Questions
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