Is there any way to have PHP determine whether an image file is corrupted and will not be able to display properly?
I\'ve tried to check with fopen and
fopen
If you mean broken as in a 404, and not a corrupt image, you can always use something along the lines of:
if (file_exists($imageFileName)) { .. }