Writing to the DataMining field

Started by BenVS, March 17, 2025, 06:40:27 AM

Previous topic - Next topic

BenVS

Hi

Could I check the correct syntax for writing to the DataMining field?

I have tried:

exiftool -DataMining="DMI-ALLOWED" C:\testimages\newtest.jpg
exiftool -DataMining="'DMI-ALLOWED'" C:\testimages\newtest.jpg
exiftool -DataMining='DMI-ALLOWED' C:\testimages\newtest.jpg

But I get error:

Warning: Can't convert XMP-plus:DataMining (not in PrintConv)
Thanks!

Phil Harvey

This is FAQ 6.  Consult the XMP PLUS Tag Name documentation for a list of value conversions.

Or you can write DataMining# (with a "#") to avoid the conversion and write "DMI-ALLOWED" directly.

- 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 ($).

BenVS

Many thanks, got it all working now