Try this:
Use image magicks tool called identify:
identify -v image-name | grep corrupt
if there is corruption it wil say something like
"Corrupt Image" so just grep for it
Ah yes, great thinking. :-) I had forgotten about imagemagick.
Good boy! Roll over! Get biscuit! :-)
Darrell