ExifTool Forum

ExifTool => Newbies => Topic started by: Newton17 on May 26, 2021, 09:33:14 AM

Title: cannot write custom xmp tag (config problem?)
Post by: Newton17 on May 26, 2021, 09:33:14 AM
Hello,
I am trying to copy some xmp tags (pitch, roll, yaw) from one image set to another. I managed to export the information to a csv file, but cannot insert the data into the other image set. I am pretty sure I'm doing something wrong with my config and creating the namespace but I haven't been able to figure out what specifically.

My config and the csv file are attached below. Initially I was trying to follow along with this discussion because it seems very similar: https://exiftool.org/forum/index.php?topic=10643.msg56475#msg56475 (https://exiftool.org/forum/index.php?topic=10643.msg56475#msg56475) but I haven't been able to get anything working.

The commands I've been using are:

Even with -all:all I can see the pitch/roll/yaw data is not added so I think I have defined my custom tags wrong in my config file. Any advice on how I might troubleshoot this is appreciated.
Title: Re: cannot write custom xmp tag (config problem?)
Post by: Newton17 on May 26, 2021, 09:34:11 AM
The screenshot of the command output was not included, my apologies. here it is.
Title: Re: cannot write custom xmp tag (config problem?)
Post by: StarGeek on May 26, 2021, 11:54:58 AM
You have dots . at the end of some lines instead of commas ,
This is what you want
    Pitch => { Writable => 'string' },
    Roll => { Writable => 'string' },
    Yaw => { Writable => 'string' },


Example output
C:\>exiftool -config Y:\!temp\bb\customtest.config -P -overwrite_original -XMP-Camera:pitch=3 -XMP-Camera:roll=4 -XMP-Camera:yaw=5 y:\!temp\Test4.jpg
    1 image files updated

C:\>exiftool -g1 -a -s -xmp:all y:\!temp\Test4.jpg
---- XMP-x ----
XMPToolkit                      : Image::ExifTool 12.26
---- XMP-Camera ----
Pitch                           : 3
Roll                            : 4
Yaw                             : 5
Title: Re: cannot write custom xmp tag (config problem?)
Post by: Newton17 on May 26, 2021, 12:22:58 PM
wow... thats a little embarrassing. just a typo, and I spent all of yesterday trying to figure out what was wrong.. Thank you so much :)
Title: Re: cannot write custom xmp tag (config problem?)
Post by: StarGeek on May 26, 2021, 12:55:42 PM
It happens, everyone's done it.  I only noticed because I was going over it line by line comparing it to a different config file that I knew worked.