How to detect corrupted JPEG files in version IM 6.8 ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
arv
Posts: 4
Joined: 2013-05-23T07:34:08-07:00
Authentication code: 6789

How to detect corrupted JPEG files in version IM 6.8 ?

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
arv
Posts: 4
Joined: 2013-05-23T07:34:08-07:00
Authentication code: 6789

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

Post by arv »

Indeed, with this option the program works just as I need.
How could I be so blind ?

Thanks awfully!
Post Reply