EXIF AUTOMATION

THE OBJECTIVE

I was looking for a way to get the METADATA fields of files that are resident in a sessions “Capture” folder filled by variables from the image’s path.

I’m familiar with Capture One’s token system but at this moment this specific function is missing:
It’s impossible to use the “Document token” (or any other one) to write METADATA fields.
Google and METADATA indexing

You might find this page about Google and their indexing of METADATA interesting too!

BEFORE YOU CONTINUE: I expect you to have some knowledge of what’s coming next and I won’t be helt responsible for any problems that might occur.
This article’s purpose is to help you with the first steps.
I advise you to create a test session before using your originals and be careful when modifying the command.
Good luck!

CONTENT

The structure of my sessions disk:

DISK
– / PHOTOS 2018
– – / Session Name (year-month-day eventname)
– – – / Capture
– – – – year-month-day eventname 001.arw
– – – – year-month-day eventname 004.arw
– – – – year-month-day eventname 005.arw
– – – / Output
– – – – – / Today (Recipe Name)
– – – – – – year-month-day eventname 001.jpg
– – – – – – year-month-day eventname 002.jpg
– – – – – – year-month-day eventname 003.jpg
– – – / Selects
– – – – year-month-day eventname 002.arw
– – – – year-month-day eventname 003.arw
– – – / Trash

In my case I want to show the Session Name in the Title field and Filename in the Description field.

MEET EXIFTOOL

The magic will be performed by ExifTool , which you can download here.

For now I’m not going deeper into the possibilities, let’s stick to the subject.
There’s also a lot more documentation and of course more information can be found on the user forums.

With some help of Phil and Stargeek I’ve written a script that will fill some EXIF/IPTC fields.

  1. Download ExifTool and place it in C:/EXIF/
  2. Create a new session
  3. Open the session’s directory, you’ll see the four sub directories
  4. Create an empty txt file
  5. Rename the extension from txt to bat
  6. Now right-click and select edit
  7. Paste the code below into the file
  8. Save and close the file
  9. Get ready for some magic…

THE MAGIC

This example command is written for Windows, please be aware of a few things tro avoid errors or problems:

  • This script will change the EXIF of all jpg files in the start folder
  • Add -r at the end of the command to work recursively from the start folder
  • Use (and pay attention to) the right slashes /
  • The double quotes ” might be replaced by accolades ” after copying
C:/EXIF/exiftool.exe -m -overwrite_original -all= "-Title<${filename;s/_/ /g;s/.ARW//} BY ME" "-Writer-Editor=ME" "-SubjectReference<${filename;s/_/ /g;s/.ARW//} BY ME" -rights="ME.COM, ALL RIGHTS RESERVED" "-by-line=ME" "-credit=ME" "-CopyrightNotice=ALL RIGHTS RESERVED BY ME.COM" "-source=ME.COM" -api "Filter=$_=uc" -ext jpg .

I’m working on a new version of this… stay tuned!