<div dir="ltr"><div>Hella,</div><div><br></div><div>Thank you for sharing your scripts.</div><div>Does the python one require exiftool or any other packages? <br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thanks,</div><div>Andrey<br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2020 at 12:22 AM Hella Breitkopf <<a href="mailto:hella.breitkopf@guug.de">hella.breitkopf@guug.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">No solution for "let digikam do the work" but for those who are not<br>
averse to some command line following might be a solution:<br>
I use a script and analyze only the metadata of the jpep,<br>
related files (same basename) are renamed based on that meta data.<br>
<br>
I started with a bash script and heavy use of exiftoolkit (<br>
<a href="https://github.com/unixhex/exipicrename" rel="noreferrer" target="_blank">https://github.com/unixhex/exipicrename</a>),<br>
but that was s l o w .<br>
<br>
So I've rewritten and improved this as Python script.<br>
All files with the same basename are renamed.<br>
<br>
<a href="https://github.com/unixhex/exipicrename2" rel="noreferrer" target="_blank">https://github.com/unixhex/exipicrename2</a><br>
<br>
shorter filenames:<br>
<br>
/tmp/demo $ exipicrename *JPG --dry-run --debug --short-names<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200120.JPG<br>
INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152454__001.jpg<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200120.ORF<br>
INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152454__001.orf<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.JPG<br>
INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.jpg<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.txt<br>
INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.txt<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.xmp<br>
INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.xmp<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.ORF<br>
INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.orf<br>
<br>
long filenames with camera name, focal length, aperture, iso:<br>
<br>
/tmp/demo $ exipicrename *JPG --dry-run --debug<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200120.JPG<br>
INFO:SIMULATION| to NEW    :<br>
/tmp/demo/20180120_152454__001__e-p3__70mm__f5-5__t60__iso1000.jpg<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200120.ORF<br>
INFO:SIMULATION| to NEW    :<br>
/tmp/demo/20180120_152454__001__e-p3__70mm__f5-5__t60__iso1000.orf<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.JPG<br>
INFO:SIMULATION| to NEW    :<br>
/tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.jpg<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.txt<br>
INFO:SIMULATION| to NEW    :<br>
/tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.txt<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.xmp<br>
INFO:SIMULATION| to NEW    :<br>
/tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.xmp<br>
INFO:SIMULATION| rename old: /tmp/demo/H3200121.ORF<br>
INFO:SIMULATION| to NEW    :<br>
/tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.orf<br>
<br>
Best wishes,<br>
Hella -- who started to rename files in that way probably before she<br>
detected digikam.<br>
</blockquote></div>