rating: XnView interface vs XMP metadata

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

nlab
Posts: 2
Joined: Tue Sep 20, 2022 10:32 am

rating: XnView interface vs XMP metadata

Post by nlab »

I observe some inconsistency that is driving me crazy:

if I rate an image using XnView interface (the star icon), it becomes the color of the star: ie: 5 = purple,
and I can filter the folder by "excellent" and the "starred 5" images are shown.

works as expected

but:
if I rate an image via edit-XMP dropdown, and I choose 5, the purple star does not appear, and the file is not show when filtering by rating.

the problem:
I have a bunch of files rated 5 (in another app), that show the rating when inspecting the XMP metadata, but that do not display the purple-5-star, and can not be sorted/filtered.

video behavior https://imgur.com/qKJWMIA
User avatar
michel038
Posts: 942
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: rating: XnView interface vs XMP metadata

Post by michel038 »

You are right, it is difficult to understand.

1) Assigning a star from the browser
This action updates the database (= the catalog)
The stars shown in the browser represents the content of the catalog.
If Tools > Settings > Metadata > "Export rating in xmp metadata" is checked, then the xmp metadata will also be written.
If this option is not set, you won't see rating in "Edit XMP" window, nor in xmp tab in Information pane.

2) Assign a star from "Edit XMP".
The role of this window is to write XMP metadata, but not to update the catalog (unless an "import" option would be enabled)
The stars will therefore not be displayed in the browser.
And the Tools > Settings > Metadata > import XMP rating option doesn't exist : It's a missing feature, I would even say a bug.
To get around it, you have to use View >Update catalog from files on the selected images.
Another ambiguity is that the 'Import Folder' action (Settings>Catalog) is actually able to import the stars (and color labels) from xmp when "Import xmp subject or iptc keyword to catalog's categories" is checked.

Translated with www.DeepL.com/Translator (free version)
User avatar
xnview
Author of XnView
Posts: 38282
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: rating: XnView interface vs XMP metadata

Post by xnview »

nlab wrote: Tue Sep 20, 2022 10:55 am I have a bunch of files rated 5 (in another app), that show the rating when inspecting the XMP metadata, but that do not display the purple-5-star, and can not be sorted/filtered.
Could you send me a file?
Pierre.
User avatar
xnview
Author of XnView
Posts: 38282
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: rating: XnView interface vs XMP metadata

Post by xnview »

michel038 wrote: Tue Sep 20, 2022 1:37 pm 2) Assign a star from "Edit XMP".
The role of this window is to write XMP metadata, but not to update the catalog (unless an "import" option would be enabled)
No, catalog must be updated with new rating
Pierre.
nlab
Posts: 2
Joined: Tue Sep 20, 2022 10:32 am

Re: rating: XnView interface vs XMP metadata

Post by nlab »

[/quote]
Could you send me a file?
[/quote]

img rating with librephotos app https://github.com/LibrePhotos/librephotos

5 star ratting visible via XMP-edit, but does not display the purple star

*if hit view -> update catalog from file = the purple star appears
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 38282
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: rating: XnView interface vs XMP metadata

Post by xnview »

could you try to select the file, and 'View>Update catalog from files'?
Pierre.