[digiKam-users] Star ratings

Dougie Nisbet dougie at katsura.uk
Sat Jun 5 22:43:39 BST 2021


I'm not sure I understand. I rely on rating info being written directly 
to image file. Then I use it later in a script that uses exiftool to 
extract all info.

i.e.

     exiftool -d %c "${fname_image}" > ${wfexif}

then later ...

#
#       RATING
#
         rating_string=""
         exif_rating=$(grep '^Rating *:' ${wfexif} | cut -d: -f2- | sed 
's/^ //')

# note use of lower case asterisk here and use of dejavu font in convert 
command so that
# it is displayed properly
         case $exif_rating in
         1)
                 rating_string="_R_"
         ;;

        etc ...

which I use as a screen overlay for a screensaver.

Can you have a look at the image file with exiftool to see if the rating 
info is there? I don't use sidecar files so perhaps there's an 
inconsistency if you have sidecar files ticked? Does it also/still write 
to image file?

Dougie




On 05/06/2021 13:09, mmjoshi wrote:
> Little confused. I am assuming that if I switch off the setting "Write to
> sidecar files" the metadata be written to tiff and  dng files. What about
> arw and pef files. So far the metadata such as tags, was written to xmp
> sidecars.
>
>
>
> --
> Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20210605_223915.png
Type: image/png
Size: 158260 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20210605/a1f96a09/attachment-0001.png>


More information about the Digikam-users mailing list