How do I ADD the filename ( with of without the extension) to the IPTC caption

Started by dijkstra, January 26, 2013, 11:55:45 AM

Previous topic - Next topic

dijkstra

I understand I can CHANGE the caption with the line "-iptc:caption-abstract<filename" but I want to ADD the filename. ( on a new line of separated with a - )
Can anyone help me because I cant find it on this forum

thanx
roel


StarGeek

The following works for me under windows
ExifTool "-iptc:caption-abstract<$iptc:caption-abstract$/-$/$filename" <FILE>

The output is
Starting Caption
-
Test.jpg


I'm using $/ to insert a new line, you might check FAQ 21 for other ways to insert a new line.

Of course, there might be other ways.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).