Image-ExifTool - Re: Batch write filename to iptc field ?

Posted on Mon Mar 31 14:03:52 2008 by exiftool in response to 7527 (See the whole thread of 37)
Re: Batch write filename to iptc field ?
Hi Marty,

I had access to a PC this morning. (Yesterday I was typing on my iPod and going by memory .) It turns out that you need to make a Windows Shortcut to be able to add arguments as I suggested. Sorry.

So rename exiftool back to "exiftool(-k).exe". (BTW, the -k in brackets is supposed to keep the window from closing immediately, so if it doesn't stay open it is because exiftool isn't seeing the -k for some reason.)

Now follow these steps:

1) Right click on "exiftool(-k).exe" and select "Create Shortcut" from the menu.

2) Find the shortcut that was created (it should be named "Shortcut to exiftool(-k)" or something like that). Right click on the shortcut and edit the "Target" entry to add the options. Before you begin editing, the "Target" should look like something like this (including the quotes):

"c:\Some directory name\exiftool(-k).exe"

then after you edit, it should look like this:

"c:\Some directory name\exiftool(-k).exe" -k "-caption-abstract<filename"

Here I have added an extra -k just in case, although I don't think it should be necessary. Now if you drag and drop a file or folder onto the shortcut, it should add the filename to the IPTC caption-abstract of all images. A black box should appear to tell you how many images were modified, and with any luck it won't disappear immediately. Note that if successful, you will now see a file ending with the name "_original" for each image that was edited. After confirming that the new file is OK, you can drag the "_original" files into the trash. If you already have backups of your images and don't want the "_original" files to be created, you can change the shortcut Target to this:

"c:\Some directory name\exiftool(-k).exe" -k "-caption-abstract<filename" -overwrite_original

You can write my than one tag by adding them to the target too. For example, if you want to also write the filename to the JPEG comment, you could change the Target to this:

"c:\Some directory name\exiftool(-k).exe" -k "-caption-abstract<filename" "-comment<filename"

You can also read the exiftool application documentation to see what other options are possible. There are many of them.

I hope this gets you going. Sorry about the false start.

- Phil
Direct Responses: 7543 | Write a response