Page 1 of 1

Using identify to check jpegs in *subfolders*?

Posted: 2013-10-02T12:58:57-07:00
by featheredtar
I have a drive with hundreds of thousands of jpegs that reside in different folders and subfolders. How can I use imagemagick's identify to check each one for corruption across many subdirectories? I'm on Windows 7.

Or could someone point me in the direction of an example? I don't know how to script.

Re: Using identify to check jpegs in *subfolders*?

Posted: 2013-10-02T13:28:03-07:00
by snibgo
For a simple check:

Code: Select all

forfiles /M *.jpg /S /C "cmd /c identify @file"

Re: Using identify to check jpegs in *subfolders*?

Posted: 2013-10-03T00:05:28-07:00
by featheredtar
Thanks. :-D

Re: Using identify to check jpegs in *subfolders*?

Posted: 2013-10-03T00:50:02-07:00
by snibgo
If your jpeg files (*.jpg) are in Q:\ and its subdirectories:

Code: Select all

forfiles /P Q:\ /M *.jpg /S /C "cmd /c identify @path"