[digiKam-users] Help with scripts
Peter Teuben
teuben at gmail.com
Wed Jun 3 04:40:15 BST 2020
David
I used to have albums from Picasa, and each album had a little
descriptor file, so I wind up writing a python script that looked for
that file and stuffed it into the appropriate field of the digikam4.db
file. But this only covers the album caption. not each photo. Since I
store them inside the JPG, they carried over easily :-)
My script can be easily modified to use this album title in the
tag/.... of each image in that album, I've not tried that, but looking
at the code, this is straightforward.
If you use the sidecab files (which i don't), it might even be easier,
since you an create those files with python quite easily. Here's a page
that might help you getting started https://www.fastrawviewer.com/node/646
this way you don't need to play with the db file, but for each JPG you
create a JPG.xmp file.
peter
On 6/2/20 10:50 PM, David Griffiths wrote:
> I need to write a script and I am not sure how to go about it.
>
> What I want to achieve is to set the Title of hundreds (thousands) of
> photos to be the folder or album that they are in. So for example, I
> have folders called 'Holiday 2017', 'Holiday Great Barrier Reef',
> 'Birthday Party 2015' etc and I want these names in the image Title
> tag so I can display them during a slideshow.
>
> Can I do this within digiKam or do I need an external script?
>
> I am using Windows 10.
>
> Example, showing Title and two Face tags:
>
> graphic
>
> Another possibilty would to have the display of the Album as an option
> on the Slidehow plugin ;-) (wishlist)
>
> TIA,
> DG
>
> -------------------------------------------
> David Griffiths
> Kurrajong (Sydney), Australia
> http://www.digitalgraphics.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20200602/493b0886/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hts_1.PNG
Type: image/png
Size: 134561 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20200602/493b0886/attachment-0001.png>
More information about the Digikam-users
mailing list