<div class="gmail_quote">On Sat, Oct 1, 2011 at 5:21 AM, Tim McCormack <span dir="ltr"><<a href="mailto:kpa@brainonfire.net">kpa@brainonfire.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
A couple of questions from the perspective of writing a tool to work<br>
with KPA:<br>
<br>
* How likely is a user to have binary-identical images in their KPA<br>
  store? (Or, is there a reason for this to be intentional/not<br>
  undesirable?)<br></blockquote><div><br>I don't think we currently try to avoid having identical images. If user has duplicates under Pics directory then we readily include them in KPA. There is a feature to automatically stack identical images (md5 sum matches) but that is more or less all we currently do. Users are free to have duplicates or get rid of them if they so desire.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
* Does KPA have a documented behavior (that I should mimic) for<br>
  handling duplicates?<br></blockquote><div><br>Nope. If image is moved we detect that by the MD5 sum and update the metadata (however, I have no idea how well that works with duplicates)<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Why I'm interested:<br>
<br>
I'm writing a tool [1] for generating a facetable web gallery from KPA<br>
databases, and at the core is a utility that creates and manages a<br>
"shadow" database containing all the information in the KPA DB *plus*<br>
persistent unique image IDs. This latter functionality has to mimic<br>
KPA's own resolution behavior.<br>
<br>
 - Tim McCormack<br>
<br>
[1] Development repo: <a href="https://github.com/timmc/kpawebgen" target="_blank">https://github.com/timmc/kpawebgen</a><br>
<br>
_______________________________________________<br>
KPhotoAlbum mailing list<br>
<a href="mailto:KPhotoAlbum@mail.kdab.com">KPhotoAlbum@mail.kdab.com</a><br>
<a href="http://mail.kdab.com/mailman/listinfo/kphotoalbum" target="_blank">http://mail.kdab.com/mailman/listinfo/kphotoalbum</a><br>
</blockquote></div><br>