After you've imported your metadata, you can select the header matching method. In order to match metadata to files your datasource must have a column for the filename. Combined with the matching style imported images are assigned the correct metadata.
There are five matching styles:
- Is Equal to
- Begins with
- Ends with
Each of these styles matches the selected column differently. The different styles provide flexibility for your workflow.
This style matches filenames which contain the the value of the filename column. This style might be useful for applying metadata across a number of different images, for instance adding studio or colorway information.
Given the following CSV:
Capturebot will match the
02_BLK in the following images, but not the final image:
This style matches filenames exactly as they appear in the CSV, excluding the extension. This style is useful when you already have images and need to assign specific metadata to each one, perhaps star ratings or color tags.
Begins/ Ends With
These two styles match prexies and suffixes in file names. Using a prefix is generally used for assigning metadata to groups of images, like all of the photos of a single product which have a counter on the end. A suffix is good for matching categories of images, as in the above example a suffix of
WEB could match all web images, while excluding catalogue images.
This is the most powerful, but also complex matching style; it matches regular expressions. These expressions allow you to conditionally match filename structures, rather than specific text. These are useful for only assigning metadata to files which have the correct format. A great way to explore regex is to use a site like Regex101.
Going back to the first example of matching colorways, we can use regex to not only match files that contain the color, but also ensure that the counter at the end is four digits.
Now, with our files we see that the second image doesn't match because its counter is only three digits long: