Doing exiftool -Comment='This is a new comment' dst.jpg
replaces any comment already present. How can I add the string instead?
-
I am unfamiliar with that tool.. but could it be something as simple as using += instead of = ?– KageCommented Aug 27, 2016 at 16:24
-
Nope, that's for adding items to a list-type tag.– Arch StantonCommented Aug 28, 2016 at 9:23
Add a comment
|
1 Answer
Use this:
exiftool '-Comment<$Comment Stuff added to comment' dst.jpg
Since you're copying a tag as well as adding stuff, you need to use the copy tag syntax "<" instead of the assign value syntax "=".
-
Thank you! I am actually trying to use it in a bash function, but I can't get arguments to work:
exiftool '-Comment<$Comment\n"$1"'
doesn't work. Can you help me please? Commented Aug 28, 2016 at 10:36 -