Bug 367896

Summary: enable reject rating (-1)
Product: [Applications] digikam Reporter: Polarfuchs <naali>
Component: Tags-RatingAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: bastianloehrer, caulier.gilles, kdebugs, metzpinguin, shikai.xu
Priority: NOR    
Version First Reported In: 5.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart1.pdf
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Polarfuchs 2016-08-27 12:42:04 UTC
To be compatible with other apps like Darktable and also adobe-xmp-standard, I wish digikam supports Rating -1 for reject 

Reproducible: Always


Actual Results:  
Rating is between 0 and 5

Expected Results:  
Rating -1 is also possible, this means reject.

XMP SPECIFICATION PART 1
DATA MODEL, SERIALIZATION, AND
CORE PROPERTIES
April, 2012 
says:

A user-assigned rating for this file. The value shall be -1 or in the range 
[0..5], where -1 indicates “rejected” and 0 indicates “unrated”. If 
xmp:Rating
is not present, a value of 0 should be assumed.
NOTE   Anticipated usage is for a typical “star rating” UI, with the addition of 
a notion of rejection.
Comment 1 Maik Qualmann 2021-10-26 06:10:23 UTC
*** Bug 441500 has been marked as a duplicate of this bug. ***
Comment 2 Maik Qualmann 2023-01-14 13:54:15 UTC
*** Bug 464273 has been marked as a duplicate of this bug. ***
Comment 3 Kane 2025-12-15 04:30:22 UTC
Hi Support team,

Is there any update on this?
I recently bought a new Nikon camera, and it has in-cam rating functionality.
I can rate a photo from 0 to 5 stars, and this data can be seen in Digikam, which is greate.
I can also rate a photo as "trash icon", I see the metadata/XMP/Rating value of the photo is set to "-1", but I cannot filter these photos in Digikam.

If there's a way I can manualy type numbers in Rating field(advance search, or Filters), it should work. 
Can this be done?

Thanks!
Comment 4 caulier.gilles 2025-12-15 05:41:49 UTC
In digiKam, the -1 rating is not supported in the database.

The Reject pick label (red flag) is used instead.

https://docs.digikam.org/en/left_sidebar/labels_view.html#label-selection

I propose:

1/ to convert automatically the -1 rating as reject pick label while importing item in the database
2/ to register a -1 rating in the XMP when reject pick label is assigned (in parallel than XMP pick label tag from digiKam namespace).

Best regards 

Gilles Caulier
Comment 5 Kane 2025-12-16 13:23:30 UTC
(In reply to caulier.gilles from comment #4)
> In digiKam, the -1 rating is not supported in the database.
> 
> The Reject pick label (red flag) is used instead.
> 
> https://docs.digikam.org/en/left_sidebar/labels_view.html#label-selection
> 
> I propose:
> 
> 1/ to convert automatically the -1 rating as reject pick label while
> importing item in the database
> 2/ to register a -1 rating in the XMP when reject pick label is assigned (in
> parallel than XMP pick label tag from digiKam namespace).
> 
> Best regards 
> 
> Gilles Caulier

Hi Gilles,

If the data type of the rating field don't support nagetive value, but if we're sure only 0~5 will be used. How about convert -1 (from camera) to a number (e.g. 11) and define it as "a rating" called "ready to be removed" (whatever the wording, I mean, just to be consistent with I observed from the Nikon camera).
What do you think? That way it won't impact the pick field.

Thanks,
Kane
Comment 6 Maik Qualmann 2025-12-16 14:57:18 UTC
We currently do not support negative ratings. However, if you search for "no rating" in the Label tab, images with a value of -1 and 0 will be listed.

Maik
Comment 7 Maik Qualmann 2025-12-16 15:01:02 UTC
In the advanced search, you can even search directly for images with "no rating" (-1).

Maik
Comment 8 Kane 2025-12-16 15:11:06 UTC
(In reply to Maik Qualmann from comment #7)
> In the advanced search, you can even search directly for images with "no
> rating" (-1).
> 
> Maik

Hi Maik,

Appreciated your respons. So,

left bar/Labels: No rating - selec photos where (rating = -1 or rating = 0)
left bar/Search/Item Properties/Rating: "No rating assigned (blank start with red cross icon) - select photos where rating = -1

correct?

Thanks,
Kane