[digiKam-users] Renaming pairs of JPG/RAW

Hella Breitkopf hella.breitkopf at guug.de
Thu Feb 13 07:21:22 GMT 2020


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.


More information about the Digikam-users mailing list