This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Remove rating from images

Tags: None
(comma "," separated)
kde-deshmukh
Registered Member
Posts
184
Karma
0

Remove rating from images

Wed Feb 27, 2019 11:23 am
Running digikam 6.0 on Manjaro Gnome.

I can do Ctrl-0 to assign a zero star rating to an image. But that is not the same as removing the rating.

How do I remove rating from images?

Last edited by kde-deshmukh on Thu Feb 28, 2019 4:37 pm, edited 1 time in total.


--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk.
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Remove rating from images

Wed Feb 27, 2019 11:42 am
kde-deshmukh wrote:I can do Ctrl-0 to assign a zero star rating to an image. But that is not the same as removing the rating.

How do I remove rating from images?

Manjaro Gnome. Kernel 4.19.24-1. 64-bit. 4GB RAM and more than 100GB free on the hard disk.


What application ?
Gnome ?

The KDE File manager, Dolphin, is using extended attributes: https://en.wikipedia.org/wiki/Extended_file_attributes

Setting the 'Star' rating, Dolphin:
Image

There are get and set tools:
Code: Select all
$ getfattr --help
getfattr 2.4.48 -- get extended attributes
Usage: getfattr [-hRLP] [-n name|-d] [-e en] [-m pattern] path...
  -n, --name=name         get the named extended attribute value
  -d, --dump              get all extended attribute values
  -e, --encoding=...      encode values (as 'text', 'hex' or 'base64')
      --match=pattern     only get attributes with names matching pattern
      --only-values       print the bare values only
  -h, --no-dereference    do not dereference symbolic links
      --absolute-names    don't strip leading '/' in pathnames
  -R, --recursive         recurse into subdirectories
  -L, --logical           logical walk, follow symbolic links
  -P  --physical          physical walk, do not follow symbolic links
      --version           print version and exit
      --help              this help text


Code: Select all
$ setfattr --help
setfattr 2.4.48 -- set extended attributes
Usage: setfattr {-n name} [-v value] [-h] file...
       setfattr {-x name} [-h] file...
  -n, --name=name         set the value of the named extended attribute
  -x, --remove=name       remove the named extended attribute
  -v, --value=value       use value as the attribute value
  -h, --no-dereference    do not dereference symbolic links
      --restore=file      restore extended attributes
      --raw               attribute value is not encoded
      --version           print version and exit
      --help              this help text



Reading:
Code: Select all
$ getfattr -d "Aerial Views by Ken Hong Leung  00008cc6_big.jpeg"
# file: Aerial Views by Ken Hong Leung  00008cc6_big.jpeg
user.baloo.rating="8"


Removing:
Code: Select all
$ setfattr -x user.baloo.rating "Aerial Views by Ken Hong Leung  00008cc6_big.jpeg"


After:
Image
kde-deshmukh
Registered Member
Posts
184
Karma
0

Re: Remove rating from images

Thu Feb 28, 2019 4:36 pm
Rog131 wrote:
kde-deshmukh wrote:I can do Ctrl-0 to assign a zero star rating to an image. But that is not the same as removing the rating.

How do I remove rating from images?

Manjaro Gnome. Kernel 4.19.24-1. 64-bit. 4GB RAM and more than 100GB free on the hard disk.


What application ?



Sorry, I should have mentioned that. Updated my question.


--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk.
User avatar
camerondavit
Registered Member
Posts
14
Karma
0
OS

Re: Remove rating from images

Thu May 30, 2019 6:46 am
Wow, it's great and useful conversation :) :) . From here I got lots of point graphics as well as extra knowledge about how to remove rating from image. Thanks everyone. :)


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]