Images.uniquehash calculation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Images.uniquehash calculation

Bugzilla from mdione@grulic.org.ar

    Notice: I'm not subscribed, so please CC me in the answers.

    I'm trying to write a script that is able to take an image already
in digikam's database and resize it, apply the same tags as the
original, and possibly remove the original. so far the idea is that this
script will be independent of digikam, touching it's database when
needed. so I checked the database structure and it looks ok, except for
the md5sum. I tried to reimplement DImgLoader::uniqueHashV2() in
libs/dimg/loaders/dimgloader.cpp:329, and even reimplementing it in
python with the same libraries (qt4's md5) and copying the algo line by
line, I get different values in the database and with the script. am I
missing something? for omparisson, I attach the script I did.

--
(Not so) Random fortune:
Doctor: Yes, he lost his left hand. So he's going to be all right.
            -- Arrested development

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel

resize.py (1K) Download Attachment