Error in writing XMP Metadata for Comments
Posted: Fri Apr 08, 2016 8:52 pm
I'm running XnViewMP Version 0.79 x64. There is an issue writing XMP Metadata. I have the option selected to "Write comment in XMP (dc:description and exif:UserComment)". One symptom of this is that the Comment will not show up in Windows 10 when I look in the file's Properties/Details or when I add columns for Comments in the Windows File Explorer file display listing. There seems to be an error in how XnViewMP creates the metadata in the file. If I write a comment with XnViewMP and then use ExifTool to update those two fields with other data I get the following warnings:
Warning: [minor] Fixed incorrect list type for XMP-exif:UserComment
Warning: [minor] Fixed incorrect list type for XMP-dc:Description
In doing this, as soon as I write the new data to the XMP-exif:UserComment field using ExifTool then the new Comment shows up in Windows File Explorer. There is something about how the Comment is written by XnViewMP that is preventing Windows from picking up the comment. Rewriting the field using ExifTool fixes the issue, as noted by it's warning above as it fixes the error.
It is interesting to note that if I write a caption using XnViewMP [and I have the Edit IPTC-IIM/XMP option set to "IPTC-IIM, update ore create XMP"] then when the caption metadata is written by XnViewMP then the previously entered XnViewMP Comment will suddenly show up in Windows as well. Whatever was bad about the comment field seems to get corrected by XnViewMP as the caption info is written. However, if I then write a new comment, the comment written will disappear in Windows again. After that the rewritten comment exhibits the bad problem again, and if I update the field (as above) using ExifTool I again get the warning listed above that there was an incorrect list type for the field.
Warning: [minor] Fixed incorrect list type for XMP-exif:UserComment
Warning: [minor] Fixed incorrect list type for XMP-dc:Description
In doing this, as soon as I write the new data to the XMP-exif:UserComment field using ExifTool then the new Comment shows up in Windows File Explorer. There is something about how the Comment is written by XnViewMP that is preventing Windows from picking up the comment. Rewriting the field using ExifTool fixes the issue, as noted by it's warning above as it fixes the error.
It is interesting to note that if I write a caption using XnViewMP [and I have the Edit IPTC-IIM/XMP option set to "IPTC-IIM, update ore create XMP"] then when the caption metadata is written by XnViewMP then the previously entered XnViewMP Comment will suddenly show up in Windows as well. Whatever was bad about the comment field seems to get corrected by XnViewMP as the caption info is written. However, if I then write a new comment, the comment written will disappear in Windows again. After that the rewritten comment exhibits the bad problem again, and if I update the field (as above) using ExifTool I again get the warning listed above that there was an incorrect list type for the field.