[digiKam-users] Renaming pairs of JPG/RAW

Andrey Goreev aegoreev at gmail.com
Fri Feb 14 13:44:39 GMT 2020


Hella,

Thank you for sharing your scripts.
Does the python one require exiftool or any other packages?
Thanks,
Andrey


On Thu, Feb 13, 2020 at 12:22 AM Hella Breitkopf <hella.breitkopf at guug.de>
wrote:

> No solution for "let digikam do the work" but for those who are not
> averse to some command line following might be a solution:
> I use a script and analyze only the metadata of the jpep,
> related files (same basename) are renamed based on that meta data.
>
> I started with a bash script and heavy use of exiftoolkit (
> https://github.com/unixhex/exipicrename),
> but that was s l o w .
>
> So I've rewritten and improved this as Python script.
> All files with the same basename are renamed.
>
> https://github.com/unixhex/exipicrename2
>
> shorter filenames:
>
> /tmp/demo $ exipicrename *JPG --dry-run --debug --short-names
> INFO:SIMULATION| rename old: /tmp/demo/H3200120.JPG
> INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152454__001.jpg
> INFO:SIMULATION| rename old: /tmp/demo/H3200120.ORF
> INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152454__001.orf
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.JPG
> INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.jpg
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.txt
> INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.txt
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.xmp
> INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.xmp
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.ORF
> INFO:SIMULATION| to NEW    : /tmp/demo/20180120_152457__002.orf
>
> long filenames with camera name, focal length, aperture, iso:
>
> /tmp/demo $ exipicrename *JPG --dry-run --debug
> INFO:SIMULATION| rename old: /tmp/demo/H3200120.JPG
> INFO:SIMULATION| to NEW    :
> /tmp/demo/20180120_152454__001__e-p3__70mm__f5-5__t60__iso1000.jpg
> INFO:SIMULATION| rename old: /tmp/demo/H3200120.ORF
> INFO:SIMULATION| to NEW    :
> /tmp/demo/20180120_152454__001__e-p3__70mm__f5-5__t60__iso1000.orf
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.JPG
> INFO:SIMULATION| to NEW    :
> /tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.jpg
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.txt
> INFO:SIMULATION| to NEW    :
> /tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.txt
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.xmp
> INFO:SIMULATION| to NEW    :
> /tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.xmp
> INFO:SIMULATION| rename old: /tmp/demo/H3200121.ORF
> INFO:SIMULATION| to NEW    :
> /tmp/demo/20180120_152457__002__e-p3__70mm__f5-5__t80__iso1000.orf
>
> Best wishes,
> Hella -- who started to rename files in that way probably before she
> detected digikam.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20200214/c236ff25/attachment.html>


More information about the Digikam-users mailing list