[digiKam-users] Automating tag maintenance?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] Automating tag maintenance?

Michael Gauland
I've been trying to get a handle on my photo collection, which has been
building up in digikam for years. I've tagged images with varying levels
of consistency over that time, and I'd like to improve that, to make it
easier to find particular images.

One thing I'd like to do is apply any tags on a JPEG to its
corresponding RAW image (and vice-versa).

I'd also like to extend this to derived images. I use two naming schemes
for this: <image name>-edited.jpg and darktable_exports/<image
name>.jpg.  I might also want to apply the tag 'postprocessed' to these
files as well.

Any suggestions on how best to automate this? I can probably puzzle out
the database structure well enough to make this work by mucking with it
directly, but that might not work in future releases.

Kind Regards,

Michael


Reply | Threaded
Open this post in threaded view
|

Re: Automating tag maintenance?

woenx
Are the tags written to the images themselves? In that case, I would use
scripts for that.

Assuming you use some linux distribution (or the ubuntu that comes with
windows 10), you could create a script that searches for filenames with
these patterns, compare and update their metadata (using exiftools or
exiv2).



--
Sent from: http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html
Reply | Threaded
Open this post in threaded view
|

Re: Automating tag maintenance?

Michael Gauland
On 26/09/18 12:16, woenx wrote:
> Are the tags written to the images themselves? In that case, I would use
> scripts for that.
>
> Assuming you use some linux distribution (or the ubuntu that comes with
> windows 10), you could create a script that searches for filenames with
> these patterns, compare and update their metadata (using exiftools or
> exiv2).

I think that would work for JPEG, but not the RAW files. Can any of you
speak with the voice of experience?

Reply | Threaded
Open this post in threaded view
|

Re: Automating tag maintenance?

meku
I recently did this with a script but instead of writing directly to files I only updated the Digikam database and then used Digikam to write out the changed metadata to files. I prefer this for keeping consistency and allowing Digikam to create .xmp files where required.

I have published my script here https://github.com/mcdamo/digikam-scripts

On Wed, 26 Sep 2018 at 13:56, Michael Gauland <[hidden email]> wrote:
On 26/09/18 12:16, woenx wrote:
> Are the tags written to the images themselves? In that case, I would use
> scripts for that.
>
> Assuming you use some linux distribution (or the ubuntu that comes with
> windows 10), you could create a script that searches for filenames with
> these patterns, compare and update their metadata (using exiftools or
> exiv2).

I think that would work for JPEG, but not the RAW files. Can any of you
speak with the voice of experience?