import matplotlib.pyplot as plt
I tried to imread a png photo among many other png photos in the same folder. Some photos read with no errors using the following line, and some returns "ValueError: invalid PNG header". What could be the cause? They all look like normal photos to me.
plt.imread(filename)