ExifTool Forum

General => Metadata => Topic started by: GoodKarma on June 15, 2022, 10:36:27 AM

Title: Help with exiftool, lightroom and drone metadata
Post by: GoodKarma on June 15, 2022, 10:36:27 AM
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

(https://i.postimg.cc/RFr3vhmC/2022-06-15-15-11-51-levyj2-System-Product-Name-Team-Viewer-Free-license-non-commercial-use-only.png)

However if I run

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

It throws this error

(https://i.postimg.cc/pLRMMt3N/2022-06-15-15-16-33-levyj2-System-Product-Name-Team-Viewer-Free-license-non-commercial-use-only.png)

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



(https://ibin.co/6kkRQ4L0zFB1.png)

(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


Title: Re: Help with exiftool, lightroom and drone metadata
Post by: StarGeek on June 15, 2022, 11:35:52 AM
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.
Title: Re: Help with exiftool, lightroom and drone metadata
Post by: GoodKarma on June 15, 2022, 03:03:10 PM
Sure can

https://drive.google.com/file/d/1OCIuGLZRlNgwrZWNl6IT3vs3HfVbPlJ7/view?usp=sharing (https://drive.google.com/file/d/1OCIuGLZRlNgwrZWNl6IT3vs3HfVbPlJ7/view?usp=sharing)
Title: Re: Help with exiftool, lightroom and drone metadata
Post by: Phil Harvey on June 15, 2022, 03:27:13 PM
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
Title: Re: Help with exiftool, lightroom and drone metadata
Post by: GoodKarma on June 16, 2022, 02:25:15 AM
hmm interesting,

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

thanks for replying