Bug 358490 - Not a problem, just an information request about "uniqueHash" field from "Images" table
Summary: Not a problem, just an information request about "uniqueHash" field from "Ima...
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Database-Migration (show other bugs)
Version: 4.12.0
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-24 16:39 UTC by Bruno Sapede
Modified: 2022-01-12 13:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
>