Identify to detect corrupted image file
Posted: 2010-06-02T03:07:44-07:00
Hi !
I'm looking how to use identify to detect corrupted image file. I call identify with php so I need it returns something (short) I could handle with php.
I have tried that to check if the format is known :
But when a JPEG file is not complete because FTP transfert has failed for example, it returns 'JPEG' so i can't know the file is corrupted
Thank you !
I'm looking how to use identify to detect corrupted image file. I call identify with php so I need it returns something (short) I could handle with php.
I have tried that to check if the format is known :
Code: Select all
identify -format "%m"
Thank you !