Exiftool command processor - syntax

Started by RobiWan, June 26, 2025, 08:34:51 PM

Previous topic - Next topic

RobiWan

Hi,

I have many images with wrong orientaliom in XMP files (don't ask me how it could happen)

Is this correct syntax to write this tag new from RAW to XMP file?

-overwrite_original_in_place
-TagsFromFile
{Files}
-Orientation<Orientation
-charset
filename=UTF8
{XMPFiles}

Or is there something to much or completely wrong? With one file it's look fine, but......

Cheers Robert

Mario

You copy the orientation tag from the image file to the XMP.
Your approach should work when only one file is selected (test!).
It will fail if {Files} resolves to multiple file names. Same for {XMPFiles}
See the ExifTool Command Processor help.

To make this work, use e.g. {File.FullName} for the -TagsFromFile statement and produce the name of the XMP file with {File.Path}{File.Name}.xmp.

Use the run mode "once per file" to run the entire command once for each selected file.

Give it a test. I think this will work, but I don't have the time to test this for you.