ExifTool Forum

ExifTool => Newbies => Topic started by: tobisi on June 01, 2020, 09:59:08 AM

Title: Adding Content without replacing existing values
Post by: tobisi on June 01, 2020, 09:59:08 AM
Hi,

I'm trying to find the correct flag that would allow me to insert a new value to the metadata but without replacing the existing. For example:

Current File values:
Keywords: soccer lesson, tennis lesson

exiftool -Keywords="running lessons" fille.pjg
New File values:
Keywords: soccer lesson, tennis lesson, running lessons

Thanks!
Title: Re: Adding Content without replacing existing values
Post by: StarGeek on June 01, 2020, 11:41:14 AM
Are you using the command line or are you using the Perl API?

On the command line, adding to keywords would be covered by FAQ #17 (https://exiftool.org/faq.html#Q17) as that is a list type tag.

If the Perl API, someone else will be along to answer that.
Title: Re: Adding Content without replacing existing values
Post by: tobisi on June 01, 2020, 12:04:27 PM
Perfect thanks!

That did it!