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....

interclubsAsked:
Who is Participating?
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.

darrickhartmanCommented:
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.
0

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?
http://www.macupdate.com/app/mac/6465/print-window
0
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
http://stackoverflow.com/questions/2097263/get-full-directory-contents-with-applescript

Image dimensions
http://www.macosxautomation.com/applescript/imageevents/01.html

This is a simple version that gets the dimensions of selected files
http://macosx.livejournal.com/6001064.html
0
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
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.