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
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.
Sure can
https://drive.google.com/file/d/1OCIuGLZRlNgwrZWNl6IT3vs3HfVbPlJ7/view?usp=sharing (https://drive.google.com/file/d/1OCIuGLZRlNgwrZWNl6IT3vs3HfVbPlJ7/view?usp=sharing)
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
hmm interesting,
I will have to take another look at this today and report back.
thanks for replying