Page 1 of 1

How to detect corrupted JPEG files in version IM 6.8 ?

Posted: 2014-04-22T05:45:16-07:00
by arv
Hello,

Currently I'm using ImageMagick-6.2.4-5-Q8-windows-dll.exe on Windows 2008 R2 Std
and to detect corrupted JPEG files I'm running the identify utility which returns message:
Exception 325: Corrupt JPEG data: premature end of data segment 'file.jpg'

But, when I upgraded to ImageMagick-6.8.X identify.exe has stopped print out information
about corrupted data. Does not help even using options: -regard-warnings or -debug.

Is it possible to obtain the behavior with version 6.2/6.4 in new version 6.8 ?
It is very helpful to me because it allows me to identify damaged photos.
If this functionality has been disabled how to achieve a similar effect in the new version IM ?

Any advice is welcome.

Regards,
arv

Re: How to detect corrupted JPEG files in version IM 6.8 ?

Posted: 2014-04-22T05:49:24-07:00
by snibgo
You may now need to use "-verbose", to make identify read each pixel.

If that doesn't help, please put a sample jpeg somewhere like dropbox.com and paste the URL here.

Re: How to detect corrupted JPEG files in version IM 6.8 ?

Posted: 2014-04-22T07:12:59-07:00
by arv
Indeed, with this option the program works just as I need.
How could I be so blind ?

Thanks awfully!