Help with exiftool, lightroom and drone metadata

Started by GoodKarma, June 15, 2022, 10:36:27 AM

Previous topic - Next topic

GoodKarma

Hi,

I hope you are well.

I am trying to map some tags from my drone so they can be used in lightroom

I managed to preserve filename by doing

exiftool -P -overwrite_original '-IPTC:Headline<${filename}' -r xxx.jpg

that worked fine (I didnt use Preservefilename as that is not recongised in lightoom)

I also want to add the PhotoMode, amongst some others

so when I run
exiftool -xmp:PhotoMode 101000020006.JPG

it displays



However if I run

exiftool -P '-XMP:IntellectualGenre<${PhotoMode}' xxx.jpg

It throws this error



I did also try
exiftool -P '-XMP:IntellectualGenre<${XMP:PhotoMode}' 2exif_test_drone.jpg -overwrite_original
but that too threw an error

I did try and play with it and somhow ended up writing what I think is XML data to XMP:IntellectualGenre using the following code

exiftool -P '-XMP:IntellectualGenre<$XMP:XMP.Parrot.Anafi:PhotoMode' 2exif_test_drone.jpg -overwrite_original

If it helps these are the tags I am trying to get into fields that lightroom can read, as well as filename which I have done





(I eventually will need to runs this directory wide on /2021/drone etc

I am looking for any ideas or suggestions on how to do this. Thanks



StarGeek

Can you share a sample problem file?

Off hand, I can't see anything really wrong, so I can't really say anything without something to test with.
"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


Phil Harvey

This works for me with the file you uploaded using the current version of ExifTool:

> exiftool a.jpg -photomode
Photo Mode                      : Single
> exiftool -P '-XMP:IntellectualGenre<${PhotoMode}' a.jpg
Warning: Invalid EXIF text encoding for UserComment - a.jpg
    1 image files updated
> exiftool -intellectualgenre a.jpg
Intellectual Genre              : Single


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

GoodKarma

hmm interesting,

I will have to take another look at this today and report back.

thanks for replying