Efficiently detect corrupted jpeg file?
Posted
by Jacco
on Stack Overflow
See other posts from Stack Overflow
or by Jacco
Published on 2008-10-13T17:56:30Z
Indexed on
2010/05/03
20:38 UTC
Read the original article
Hit count: 367
Is there an efficient way of detecting if a jpeg file is corrupted?
Background info:
solutions needs to work from within a php script
the jpeg files are on disk
manual checking is no option (user uploaded data)
I know that imagecreatefromjpeg(string $filename);
can do it. But it is quite slow at doing so.
Does anybody know a faster/more efficient solutions?
© Stack Overflow or respective owner