<div dir="ltr">Marco,<br>I use exiftool to both read and write metadata. The part that sets rating looks like this:<br>$EXIFTOOL -m -fast -P -overwrite_original_in_place -Rating=$RATINGĀ $TMP | grep -v '1 image files updated'<br><br>Where <br>$EXIFTOOL is the path to exiftool<br>$RATING is the rating (usually 2)<br>$TMP is the JPEG file<br><br>The script itself has a lot of homemade characteristics, it has evolved over the years and the programming is really not very nice :) I'll be happy to send it to you tough, if the above example doesn't cover your needs. Please let me know.<br><br><div><div><br></div><div>Regards<br>Anders<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-23 12:35 GMT+02:00 M. Fioretti <span dir="ltr"><<a href="mailto:mfioretti@nexaima.net" target="_blank">mfioretti@nexaima.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2014-09-23 11:25, Anders Kamf wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. Transfer photos from cameras, together with rename and<br>
setting rating to 2, with a bash script to<br>
~/photos/edit/YYYY/YYMMDD_<u></u>EVENT,<br>
naming: YYYYMMDD-HHMM_CAMERAID_<u></u>ORGFILENAME<br>
</blockquote>
<br></span>
Anders,<br>
may you please post that script? I do have similar ones already, but the "set rating" part interests me.<br>
<br>
Thanks,<br>
Marco<span class="HOEnZb"><font color="#888888"><br>
-- <br>
<a href="http://mfioretti.com" target="_blank">http://mfioretti.com</a></font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Digikam-users mailing list<br>
<a href="mailto:Digikam-users@kde.org" target="_blank">Digikam-users@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/digikam-users" target="_blank">https://mail.kde.org/mailman/<u></u>listinfo/digikam-users</a><br>
</div></div></blockquote></div><br></div>