[Digikam-devel] Images.uniquehash calculation
Marcos Dione
mdione at grulic.org.ar
Mon Jun 17 18:43:02 BST 2013
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resize.py
Type: text/x-python
Size: 1190 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20130617/39b8235b/attachment.py>
More information about the Digikam-devel
mailing list