title: How to determine if a photo is corrupted?
body: <p>I have a requirement where in I have to determine whether a photo is corrupted and accordingly tag it as such.</p>
  
  <p>Another thing, I need is to determine if an Image has got wrong extension. What I mean by wrong extension is that sometimes I have come across a photo that has extension of jpg but when I load this photo into IrfanView it reports that the photo is in different format that the extension.</p>
  
  <p>How can I do this in Delphi.</p>