title: An efficient way to detect corrupted png files?
body: <p>I've written a program to process a bunch of png files that are generated by a seperate process. The capture mostly works, however there are times when the process dies and is restarting which leaves a corrupted image. I have no way to detect when the process dies or which file it dies one (there are ~3000 png files).</p>
  
  <p>Is there a good way to check for a  corrupted png file?</p>