Originally Posted By: jcl
I have no code for checking if an image is good or bad, and I also am not sure that such code can be found in online libraries, as it's an unusual task. Most libraries just assume that the image is good. So probably you have to code that yourself in a lite-C script.

Basically you need to do a consistency check of the header of any image format that you want to load. Dependent on the compression algorithm, you might also need to check the content.

Thanks for your reply, excuse me for the late.