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
This works for me 100% :) I test if image exists by file_exists() and if it exists, you will catch corrupted images with this.