Keep language alternatives when embedding MWG fileds

Started by laredo, April 23, 2019, 11:12:54 AM

Previous topic - Next topic

laredo

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.

Phil Harvey

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

...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 ($).