ExifTool Forum

ExifTool => Developers => Topic started by: herb on June 15, 2020, 07:34:56 AM

Title: Question to MWG tags
Post by: herb on June 15, 2020, 07:34:56 AM
Hello Phil,

In order to "synchronise" the values of MWG-tags - e.g.: -mwg:copyright - I use the following command
exiftool.exe -mwg:copyright<mwg:copyright FILE
Great feature!
But because it also writes -xmp-dc:Rights - for me it has the side-effect that lang-alt sub-tags e.g.  -xmp-dc:rights-de is deleted.

OK: In case of I know that rights-de exists I can restore it.
BUT in case I do not know which lang-alt sub-tags do exists, how can all these sub-tags be restored?

Thanks for your comment in advance
Best regards
herb
Title: Re: Question to MWG tags
Post by: Phil Harvey on June 15, 2020, 10:16:49 AM
Hi Herb,

You can do this:

exiftool -tagsfromfile @ -mwg:copyright "-xmp-dc:rights-*" FILE

- Phil
Title: Re: Question to MWG tags
Post by: herb on June 15, 2020, 10:38:04 AM
Hello Phil,

Wow, thats great!  Thanks for your help.

Best regards
herb
Title: Re: Question to MWG tags
Post by: StarGeek on June 15, 2020, 10:53:46 AM
Quote from: Phil Harvey on June 15, 2020, 10:16:49 AM
exiftool -tagsfromfile @ -mwg:copyright "-xmp-dc:rights-*" FILE

Dang, I should have thought of using the wildcard.  I don't use the alt-lang tags but sometimes I run across them.