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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype