jpeginfo is used to generate informative listings of  jpeg
files,  and  also  to check jpeg files for errors. Program
also supports automatic deletion of broken jpegs.

WWW: http://www.cc.jyu.fi/~tjko/projects.html