Question to -XMP-exif:all < EXIF:all

Started by herb, August 03, 2017, 08:09:09 AM

Previous topic - Next topic

herb

Hello Phil,

The argumentfile exif2xmp.args contains e.g. the following line: -XMP-exif:all < EXIF:all
This command copies all tags - that have identical names both in Exif group and also in XMP-exif group - from Exif into XMP-exif.
A wonderful feature; thanks for it.

Now I want to avoid that also Exif:UserComment is copied into XMP-exif:UserComment, because
-XMP-exif:UserComment < Exif:UserComment
will also delete all 'alt-lang' subtags of XMP-exif:UserComment (if available).
I want to replace it with
-XMP-exif:UserComment-x-default < Exif:UserComment

Can this be done with one line -XMP-exif:all < EXIF:all (but not UserComment)
or do I have to create an argumentfile that does the copy of all other Exif-tags tag by tag?

Thank for your help in advance
Best regards
Herb

Phil Harvey

Hi Herb,

Try this:

-XMP-exif:all < EXIF:all
--EXIF:UserComment
-XMP-exif:UserComment-x-default < EXIF:UserComment


This excludes EXIF:UserComment from the tags copied in the first argument, then copies it to the default lang as you wanted.

- 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,

Great! Wonderful; it works. 1000 thanks for your help.

Best regards
Herb