[KPhotoAlbum] Likelihood of duplicate images?
miika.turkia at gmail.com
Sat Oct 1 06:51:38 CEST 2011
On Sat, Oct 1, 2011 at 5:21 AM, Tim McCormack <kpa at brainonfire.net> wrote:
> Hi all,
> A couple of questions from the perspective of writing a tool to work
> with KPA:
> * How likely is a user to have binary-identical images in their KPA
> store? (Or, is there a reason for this to be intentional/not
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.
> * Does KPA have a documented behavior (that I should mimic) for
> handling duplicates?
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)
> Why I'm interested:
> I'm writing a tool  for generating a facetable web gallery from KPA
> databases, and at the core is a utility that creates and manages a
> "shadow" database containing all the information in the KPA DB *plus*
> persistent unique image IDs. This latter functionality has to mimic
> KPA's own resolution behavior.
> - Tim McCormack
>  Development repo: https://github.com/timmc/kpawebgen
> KPhotoAlbum mailing list
> KPhotoAlbum at mail.kdab.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KPhotoAlbum