<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>David</p>
<p> 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 :-)<br>
</p>
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.
<p>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
<a class="moz-txt-link-freetext" href="https://www.fastrawviewer.com/node/646">https://www.fastrawviewer.com/node/646</a> <br>
</p>
<p>this way you don't need to play with the db file, but for each
JPG you create a JPG.xmp file.</p>
<p>peter<br>
</p>
<div class="moz-cite-prefix">On 6/2/20 10:50 PM, David Griffiths
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5ED70FD9.6495.363E2C88@david.digitalgraphics.com.au">
<title></title>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<meta http-equiv="Content-Style-Type" content="text/css">
<div align="left"><font face="Arial"><span style=" font-size:11pt">I
need to write a script and I am not sure how to go about it.</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt">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.</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt">Can
I do this within digiKam or do I need an external script? </span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"> I
am using Windows 10.</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt">Example,
showing Title and two Face tags:</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><img src="cid:part1.50C0E717.8108637B@gmail.com"
alt="graphic" class="" width="360" height="175" border="0"></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt">Another
possibilty would to have the display of the Album as an
option on the Slidehow plugin ;-) (wishlist)</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt"><br>
</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt">TIA,</span></font></div>
<div align="left"><font face="Arial"><span style=" font-size:11pt">DG</span></font></div>
<div align="left"><font size="2" face="Courier New"><span style="
font-size:10pt"><br>
</span></font></div>
<div align="left"><font size="2" face="Courier New"><span style="
font-size:10pt">-------------------------------------------</span></font></div>
<div align="left"><font size="2" face="Courier New"><span style="
font-size:10pt">David Griffiths</span></font></div>
<div align="left"><font size="2" face="Courier New"><span style="
font-size:10pt">Kurrajong (Sydney), Australia</span></font></div>
<div align="left"><font size="2" face="Courier New"><span style="
font-size:10pt"><a class="moz-txt-link-freetext" href="http://www.digitalgraphics.com.au">http://www.digitalgraphics.com.au</a></span></font></div>
</blockquote>
</body>
</html>