Detecting corrupt images

does any one have any code that will remove or detect corrupt images?

I have some code that detects a missing End Of Info marker in JPEG files. Is that what you need?

that would be handy yes!

The GD function getimagesize(filename) returns FALSE if the image file is corrupt or not an image file.