Image-ExifTool - Re: .exiftool_config for biological data

Posted on Sat Nov 24 02:54:53 2007 by exiftool in response to 6510 (See the whole thread of 22)
Re: .exiftool_config for biological data
Hi Eddie,

You don't need a batch file to do this. Since there are so many tags, it is probably easiest to put them in a text file (FILE.TXT). Then use the command:

exiftool -@ FILE.TXT -r -overwrite_original -P DIR

Here I have used -overwrite_original, so make sure you have backed up all your images first. The command will apply all arguments from FILE.TXT to all images in directory DIR and its subdirectories. All you have to do then is to create FILE.TXT containing lines like this

-author=Phil Harvey -Copyright=2007 -anotherTag=something else

This will work if you want to use the same tags for all files. Otherwise it gets a bit more complicated but can be done.

To extract all the tags into a database, use:

exiftool -filename -@ FILE2.TXT -r -T DIR >out.txt

Where this time FILE2.TXT contains lines like this:

-author -Copyright -anotherTag

This will create an output text file called "out.txt" which is a tab-delimted text file that you should be able to import into any database.

Read the exiftool application documentation for more information about the options I have used here.

- Phil
Direct Responses: 6512 | Write a response