2

Doing exiftool -Comment='This is a new comment' dst.jpg replaces any comment already present. How can I add the string instead?

2
  • I am unfamiliar with that tool.. but could it be something as simple as using += instead of = ?
    – Kage
    Commented Aug 27, 2016 at 16:24
  • Nope, that's for adding items to a list-type tag. Commented Aug 28, 2016 at 9:23

1 Answer 1

2

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 "=".

2
  • 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
  • Solved. I had to write '-Comment<$Comment$/'$1''. Commented Aug 28, 2016 at 13:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .