Batch File to dump image names and size to text file....

I am in need of a batch file that I can run that will take all the photos from whatever directory it's run in (and to search recursively if the directory contains sub directories) and dump all the names, paths, and height/width into a single text file. Not sure if it's possible w/o imagemagick, but I do have it installed if it's needed. It should work with jpg, png, gif, jpeg and probably be case insensitive for the extension....

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You'll need a script that uses find and exiftool in a for loop.

Something like:

for i in `find . -name '*.jpg' -print`|echo $I >> filename.txt; exiftool $i ... (not a complete command)

Since you want this formatted in a specific way, you are probably going to want to use perl or python. You'll get more control than what can easily be done in a shell script.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eoin OSullivanConsultantCommented:
Have you looked at a utility like Print Window for OSX?
Eoin OSullivanConsultantCommented:
if you really want to do it as a script you can look at Applescript

You'll need a script that steps recursively through folders to generate a file list and then process each image using Image Events to get the dimensions
File Listing

Image dimensions

This is a simple version that gets the dimensions of selected files
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.