Matching Windows Explorer metadata

Started by Ad_Astra, February 10, 2025, 03:22:45 PM

Previous topic - Next topic

Ad_Astra

Hi

I am interested in adding the metadata tags to display in Windows Explorer for the subject and comments fields.

I found useful discussion on the forum back in the days of Windows 7. I created an args file with the following:

-EXIF:XPSubject=photo by myname
-EXIF:XPComment=Copyright myname

and ran against some JPEG files. The Subject field is updated but the comments field is not. Does anybody have a suggestion as to the correct tag to update for the Windows Explorer to display in the comments field?

StarGeek

XPComment still works here on min Win10 system. You can also try EXIF:UserComment and XMP:UserComment.

See the Windows Metadata thread. I don't have Win11, so I can't test any updates for that, but I hear PNG files have better support.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Ad_Astra

-EXIF:XPComment=Copyright myname still fails to update the Comment field on my Windows 10 but -EXIF:UserComment=Copyright myname did.

I can only update these two tags in JPEG files, my code to update XMP file for NEF files fails to add either tag to the XMP file. it is using the same arg file and the other tags in the arg file are updated which puzzles me.

exifCmd -P -q -overwrite_original -srcfile %d%f.xmp -ext nef . -@ CopyrightReplace.args
Looks OK to me as the other tags are added, are these two tags compatible with XMP files?

-EXIF:XPSubject=photo by myname
-EXIF:UserComment=Copyright myname

Wondering if XMP files support EXIF tags?





StarGeek

Quote from: Ad_Astra on February 10, 2025, 03:44:50 PMmy code to update XMP file for NEF files fails to add either tag to the XMP file. it is using the same arg file and the other tags in the arg file are updated which puzzles me.
...
Wondering if XMP files support EXIF tags?

XMP files only support XMP data.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Ad_Astra

#4
Is it possible when using an args file to set the value of a tag equal to another tag or do I need to add multiple tag entries with the same value?

e.g. I set "-XMP:UserComment=some text" first. Then I set "-EXIF:UserComment=some text". Would be easier to keep consistent if I could assign the value from the first tag rather than retype the tag vlaue.

I tried in my args file -IPTC:CopyrightNotice < XMP:UserComment as a test to see if the text was uopdated but got Warning: IPTCDigest is not current. XMP may be out of sync .

I also tried -EXIF:XPComment < -XMP:UserComment but this just wrote the  text < -XMP:UserComment into the tag not the value

StarGeek

Quote from: Ad_Astra on February 11, 2025, 06:55:28 AMIs it possible when using an args file to set the value of a tag equal to another tag or do I need to add multiple tag entries with the same value?

It's not possible to set the value of a tag and then copy that tag into another, either on the command line or a args file.

What you can do is use the -UserParam option. Set the userparam and then copy the userparam into other tags.
exiftool -userparam myvar="New Title" "-title<$myvar" "-comment<$myvar" a.jpg
See here
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Ad_Astra

Thanks StarGeek, I can see how UserParams would work to update multiple tags with consistent values, I will use that technique.