title: 'libpng error: Read Error' by using open cv imread
body: <p>I am currently using Anaconda 4.3.27, Python 3.6.2 and OpenCV 3.3.0</p>
  
  <p>When I try </p>
  
  <pre><code>img1 = cv2.imread('D:\Images\3D-Matplotlib.png')
  img2 = cv2.imread('D:\Images\mainsvmimage.png')
  </code></pre>
  
  <p>I get <code>libpng error: Read Error</code>and a pop-up shows up, indicating that Python stopped working. I already tried replacing the '\' by '\\' and '/', but also in those cases the same error shows up. When I try to read a jpg instead of a png, I do not get the error. Does anybody have an idea what might be the problem here?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Edit:</p>
  
  <p>Also cv2.imwrite gives an error:</p>
  
  <pre><code>libpng error: Write Error
  </code></pre>