ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: herb on August 03, 2017, 08:09:09 AM

Title: Question to -XMP-exif:all < EXIF:all
Post by: herb on August 03, 2017, 08:09:09 AM
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
Title: Re: Question to -XMP-exif:all < EXIF:all
Post by: Phil Harvey on August 03, 2017, 10:22:33 AM
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
Title: Re: Question to -XMP-exif:all < EXIF:all
Post by: herb on August 03, 2017, 02:55:10 PM
Hello Phil,

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

Best regards
Herb