ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: laredo on April 23, 2019, 11:12:54 AM

Title: Keep language alternatives when embedding MWG fileds
Post by: laredo on April 23, 2019, 11:12:54 AM
Hi,
Is it possible to keep existing (or previously embedded) Lang Alt values when embedding MWG fields (i.e. x-lang default values). I need to keep them because in workflow they can be embedded before x-lang default values are embedded. Had no luck so far because, for instance, previously embedded xmp-dc:description-de and xmp-dc:description-ru all get deleted when mwg-description is embedded later.
Title: Re: Keep language alternatives when embedding MWG fileds
Post by: Phil Harvey on April 23, 2019, 11:19:28 AM
This would be tricky to do via the MWG:Description tag.  It would be easier to write the XMP-dc:Description-x-default tag instead.

- Phil

Edit: Figured out a  way to do what you asked.  Ugly though:

To do it via MWG:Description, you could copy other languages back again, something like this:

exiftool -tagsfromfile @ "-xmp-dc:description*" -mwg:description="some description" FILE