Bug 358490

Summary: Not a problem, just an information request about "uniqueHash" field from "Images" table
Product: [Applications] digikam Reporter: Bruno Sapede <bruno.sapede>
Component: Database-MigrationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version: 4.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:

Description Bruno Sapede 2016-01-24 16:39:57 UTC
Trying to migrate my ACDSEE photos database to digikam, I don't know how the field "uniqueHash" is calculate. The name alone is not enough : what are the other informations used ?
I did not find the answer in the DBSCHEMA.ODS and I don't want download the whole digikam source code to find it.

I developping a little java tool to "copy" the export file from ACDSEE (xml file) into the digikam database.

Thank's for your help.

Reproducible: Always
Comment 1 caulier.gilles 2016-01-24 17:29:05 UTC
There are 2 methods to compute unique hash value from a file and to store it to DB :

V1 : https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/dimg/loaders/dimgloader.cpp#L368

V2 : 

https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/dimg/loaders/dimgloader.cpp#L323

Historically, V1 is older one. V2 is now used instead since a while. V1 still here for compatibility.

Gilles Caulier
Comment 2 Bruno Sapede 2016-01-25 21:54:54 UTC
Thank's for your answer.

Le 24/01/2016 18:29, via KDE Bugzilla a écrit :
> https://bugs.kde.org/show_bug.cgi?id=358490
>
> caulier.gilles@gmail.com changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |caulier.gilles@gmail.com
>
> --- Comment #1 from caulier.gilles@gmail.com ---
> There are 2 methods to compute unique hash value from a file and to store it to
> DB :
>
> V1 :
> https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/dimg/loaders/dimgloader.cpp#L368
>
> V2 : 
>
> https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/dimg/loaders/dimgloader.cpp#L323
>
> Historically, V1 is older one. V2 is now used instead since a while. V1 still
> here for compatibility.
>
> Gilles Caulier
>