Main Menu

Question to MWG tags

Started by herb, June 15, 2020, 07:34:56 AM

Previous topic - Next topic

herb

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

Phil Harvey

Hi Herb,

You can do this:

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

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

herb

Hello Phil,

Wow, thats great!  Thanks for your help.

Best regards
herb

StarGeek

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