title: check manually for jpeg end of file marker ffd9 (?) in php to catch truncation errors
body: <p>basically trying to remove corrupt, prematurely ending jpeg files from a collection. i figured if the end of file marker was absent then that meant the image is truncated and therefore i would consider it invalid for my purposes.
  is this method of checking sound? if so any ideas of how i could implement this in php?</p>
  
  <p>cheers</p>