Just make sure your XnView is updated.
Hello,
I'm facing an issue that might be quite difficult to understand, so I'll explain my general workflow to allow you to understand better.
Some years ago I moved from Lightroom to XnView MP for adding XMP keywords to my image folder containing thousands of images.
The workflow I established allowed me to define a set of keywords I was interested in (100+), then grouping them using category sets
(e.g., group "Place" contained "interior, outdoors, beach, forest, street, ...") allowed me to have a nice interface to assign keywords from each group and to "convert" them into keyword by using the "export categories to XMP" setting. Everything worked fine and I tagged plenty of images.
Then I stopped doing that due to lack of time, but continued taking photos and stacking them.
Recently, I trained an AI classifier to output some keywords (different from those I used in XnView) and wrote a script for saving them in XMP metadata.
Since I needed a nice interface for manually validating my model output (and to actually manage keywords), I opened XnView again.
So, what happens is the following (where A* are XnView categories and B* are my new keywords coming from my script):
- I start with a image with no tags.
- I assign tags A1, A2, A3 using XnView Category Groups. They are correctly written in the Xmp.dc.subject tag within the image file.
- I use my script to add subjects B1, B2, that XnView have never seen.
- I can see the tags correctly applied using Gwenview ExifTool, reporting A1, A2, A3, B1, B2.
- I open XnView, select "Update Catalog from Files", then select the image
- B1, B2 are added to the list in the Categories tab, and I can see them in XMP viewer, but I cannot see them in the Assigned Category Group nor in assigned categories.
- If I try to edit the categories, e.g. adding A4, as soon as I click on another image, my XMP subjects reverts to A1, A2, A3, A4, discarding everything else that has been imported.
I remember during my several tries that sometimes XMP subjects are removed altogether by XnView, leaving only image rating and another tag.. I would edit this post with more specific information as soon as I can access my pc...
Is that some kind of bug, or I'm not recalling an important step? I know that categories group are stored internally and keywords are stored in XMP, but I thought that the update of the catalog would also reflect on categories, and that "Export categories to XMP" would just add new categories to XMP leaving there the ones that are already present... Is there any workaround for this?