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
Is there any way to have PHP determine whether an image file is broken
If by broken you mean corrupted, changes are the imagecreatefrom{extension} won't be able to read them either:
if( imagecreatefromjpeg( $yourfile ) !== false ) { // image is okay. }