Batch Processing Images Using ExifTool + Terminal

Started by Thrasher, November 26, 2020, 11:32:24 AM

Previous topic - Next topic

Thrasher

Hi All,

First post on the forum so apologies if this has been covered already - please dont shout at me.

I would like to extract EXIF info from a batch of around 30 images.
I would like to use terminal on Mac and save the data into a Word document or Excel.

Is there a way of automating the process? Instead of dragging images individually into Terminal and hitting return then copying / pasting to Word ?

I am sure there's a way of dragging images into terminal and creating a CSV file - i just cant figure it out.

Thanks in advance.

Phil Harvey

The basic command looks like this:

exiftool -csv DIR > out.csv

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Thrasher

So I open terminal > Copy "exiftool -csv DIR > out.csv" > Paste > drag images into terminal > hit return. This does not create a CSV file for me unfortunately.
What am I doing wrong?

Thrasher

I have pasted the file directory in now and get: 1 directories scanned 5 image files read. But no CSV file has been made. Please help.

StarGeek

The CSV file will be made in the current directory used by Terminal, which isn't necessarily the same as the files you dropped onto the Terminal window.  You can add a full path to create it in another place. 

Also, you replace DIR with the directories/files you want to process.  It's not part of the command.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Thrasher

Sorted. I was trying to process TIFF files. Then switched to JPEG's - bingo.

Thanks.