<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-12-24 0:04 GMT+01:00 Jens Benecke <span dir="ltr"><<a href="mailto:jens-digikam@spamfreemail.de" target="_blank">jens-digikam@spamfreemail.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I collect all our family photos in Digikam (two cameras, three mobile phones, two tablets, and occasional screenshots or images mailed to us).<br>
I then geotag, tag and rate them. One of the tags is „for friends“ of which I would like matching images to (automatically) be copied onto a SMB share on our NAS when images are added. I do not want to create copies within the Digikam hierarchy and I do not want to do this manually (unless it is done with a single mouse click).<br>
<br>
I imagine a command line image selection / export tool bundled with Digikam could do the trick which would output paths of matching images selected by criteria (tags would be sufficient). This can then be used in scripts. For example,<br>
<br>
digikam-select -c „Default“ -t „for friends“<br>
<br>
would output a list of files in collection „Default“ with tag „For friends“ with (relative) paths. E.g.<br>
<br>
2016/July/IMG0192.JPG<br>
2016/September/DCIM0992.JPG<br>
...<br>
<br>
This could then be used to keep an external archive of (possibly reduced) JPG files automatically like I described above. For example,<br>
<br>
#!/bin/bash<br>
digikam-select -c „Default“ -t „for friends“ | while read FILE ; do<br>
test -f /media/my-SMB-share/Digikam-<wbr>export/„$FILE“ && continue<br>
# … create directory if it doesn’t exist …<br>
convert -quality 80 „$FILE“ /media/my-SMB-share/Digikam-<wbr>export/„$FILE“<br>
done<br>
<br>
Does something like this exist already or is planned?<br></blockquote><div><br></div><div>From digiKam developer : no.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If not, would you accept such a tool in Digikam? I could at least write a companion script (in Ruby or Perl) with similar functionality.<br></blockquote><div><br></div><div>Sure. There is a directory in application to host 3rdparty scripts, but we don't maintain code.</div><div><br></div><div><a href="https://cgit.kde.org/digikam.git/tree/data/scripts">https://cgit.kde.org/digikam.git/tree/data/scripts</a><br></div><div><br></div><div>The problematic of this solution is the difficulty to have scripts updated in time. A git access must used or a request to developers need to be sent.</div><div><br></div><div>Perhaps it's time to use a github repository to host all scripts which will be more easy to maintain in time for end-users ?</div><div><br></div><div>Best</div><div><br></div><div>Gilles Caulier</div></div></div></div>