Author Topic: Keep language alternatives when embedding MWG fileds  (Read 138 times)

laredo

  • Newbie
  • *
  • Posts: 1
Keep language alternatives when embedding MWG fileds
« 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.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14895
    • ExifTool Home Page
Re: Keep language alternatives when embedding MWG fileds
« Reply #1 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

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