Page 1 of 1

Scan folders for corupted jpegs

Posted: 2016-01-19T05:53:29-07:00
by Enko
Hi,

I would like to scan the whole folder for corupted images. I know it is possible to do that with this command in the desired folder:
identify -verbose -regard-warnings *.jpg
But it takes tooo much time, it writes back all the information about all the images. But i want just to get info which images are corrupted.
I found this by Google:
find . -name \*.jpg -exec identify -verbose -regard-warnings {} >/dev/null "+"
but it does not work for me.
Do you have any idea how to do that?

Re: Scan folders for corupted jpegs

Posted: 2016-01-19T06:14:06-07:00
by snibgo
Perhaps a convert would be faster, while reporting errors, eg

Code: Select all

convert in.jpg info:

Re: Scan folders for corupted jpegs

Posted: 2016-01-19T07:09:56-07:00
by Enko
Thank you, i tried that. It might be faster but it didn't recognize images corrupted in the midle, which
"identify -verbose -regard-warnings *.jpg" recognized. And that is what i need -to be able to- recognize corrupted images. But thank you anyway.

Re: Scan folders for corupted jpegs

Posted: 2016-01-19T10:37:24-07:00
by fmw42
What is your IM version and platform? Please always provide that and if possible an example image.

Re: Scan folders for corupted jpegs

Posted: 2016-01-20T02:15:05-07:00
by Enko
I have the current release ImageMagick 6.9.3-1, OS Windows. The image was originally ok, for the testing i changed it with Hex editor, so it has visible damage (it seems i cant add atachments here)-

Re: Scan folders for corupted jpegs

Posted: 2016-01-20T10:02:37-07:00
by fmw42
You can upload your image to some free hosting service such as dropbox.com and put the URL here.