<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 24/12/16 19:01, Gilles Caulier
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHFG6sEuzV1OVnMNhc2mx9fAtw2PoF6Qbb9-ULSOF3c+fQAE7g@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
                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 moz-do-not-send="true"
                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>
    </blockquote>
    <br>
    <p>The simplest way of doing this is to use a script. Collections
      are just directories and tags can be extracted easily using exiv2
      (<a class="moz-txt-link-freetext" href="http://www.exiv2.org/">http://www.exiv2.org/</a>) or exiftools
      (<a class="moz-txt-link-freetext" href="http://www.sno.phy.queensu.ca/~phil/exiftool/">http://www.sno.phy.queensu.ca/~phil/exiftool/</a>).</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-signature">-- <br>
      Cheers Simon <br>
      <br>
      <span style="padding:1cm; font-family: sans-serif; font-size:150%;
        ">Simon Christopher Cropper</span><br>
      <span style="padding:1cm">Mobile: 0431 821 566</span><br>
      <span style="padding:1cm">Email: <a
          href="mailto:contact@simonchristophercropper.com"><a class="moz-txt-link-abbreviated" href="mailto:contact@simonchristophercropper.com">contact@simonchristophercropper.com</a></a></span><br>
      <span style="padding:1cm">Online CV: <a
          href="http://www.simonchristophercropper.com/"><a class="moz-txt-link-freetext" href="http://www.simonchristophercropper.com/">http://www.simonchristophercropper.com/</a></a></span><br>
      <span style="padding:1cm">LinkedIn: <a
          href="http://au.linkedin.com/in/simonchristophercropper/"><a class="moz-txt-link-freetext" href="http://au.linkedin.com/in/simonchristophercropper/">http://au.linkedin.com/in/simonchristophercropper/</a></a></span><br>
      <span style="padding:1cm">ResearchGate: <a
          href="https://www.researchgate.net/profile/Simon_Cropper3"><a class="moz-txt-link-freetext" href="https://www.researchgate.net/profile/Simon_Cropper3">https://www.researchgate.net/profile/Simon_Cropper3</a></a></span>
      <br>
    </div>
  </body>
</html>