duplicate hashes in digikam 1.7 database

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

duplicate hashes in digikam 1.7 database

Elle Stone
Hi, All,

I noticed several of my images have the wrong thumbnail. A bit of investigation showed that the problem is that the images with the wrong thumbnail all have the same (not so) uniqueHash in the database. Why the images with duplicate hashes pick up the thumb of a different image is a mystery.

http://digikam.1695700.n4.nabble.com/file-hash-creation-asking-for-short-test-td3079942.html#a3082159 is a recent discussion of hash values, but no problem with duplicate hashes was mentioned.

Is this an already-posted bug? I have a test database (14 images) with screenshots documenting the problem, if anyone is interested.

I checked - md5 sums of the images are all different (and the images look different - all the same staring raw file but very different renderings). Apparently digikam doesn't used the entire image file for calculating hashes?

Elle Stone
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

tosca


2011/1/7 Elle Stone <[hidden email]>

Hi, All,

I noticed several of my images have the wrong thumbnail.

I reported the same problem a few weeks ago, but I don't remember what the answer was.
I rebuild the database quite frequently to avoid the problem, but that is not a real solution.
 
Marie-Noëlle


--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

Gilles Caulier-4
Please report this problem in bugzilla, into digiKam/Database component

Thanks in advance

Gilles Caulier

2011/1/7 Marie-Noëlle Augendre <[hidden email]>


2011/1/7 Elle Stone <[hidden email]>


Hi, All,

I noticed several of my images have the wrong thumbnail.

I reported the same problem a few weeks ago, but I don't remember what the answer was.
I rebuild the database quite frequently to avoid the problem, but that is not a real solution.
 
Marie-Noëlle


--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale


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



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

Jim Dory-2
In reply to this post by tosca
On Fri, Jan 7, 2011 at 9:17 AM, Marie-Noëlle Augendre
<[hidden email]> wrote:

>
>
> 2011/1/7 Elle Stone <[hidden email]>
>>
>> Hi, All,
>>
>> I noticed several of my images have the wrong thumbnail.
>
> I reported the same problem a few weeks ago, but I don't remember what the
> answer was.
> I rebuild the database quite frequently to avoid the problem, but that is
> not a real solution.
>
> Marie-Noëlle
>
>

This happened to me when using another program to delete and rename
some images. I then had the wrong thumbnail on images in Digikam -
that caused me quite some confusion until I figured out that the
thumbnails were wrong. I fixed it by rotating the thumbnail (right
click and pick rotate - or maybe it was in the menu) and then rotating
it back. That redrew the thumbnail to its correctness. Refresh didn't
work. But I wouldn't want to have to do that if you have a lot of
images as it took a bit of time - I only had a dozen or so to fix...
/jd
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

Elle Stone
Marie-Noëlle, Jim - I thought I had seen other people mention having
the wrong thumbs on certain images. Maybe there is more than one cause
of an incorrect thumb. In this case, no other program has touched the
images since the test database was created, and nothing has been
renamed.

Some of the images in the test database have the same imageHash,
verified using the SQLite database browser. I'm guessing the wrong
thumbs are because of the duplicate imageHashes.

Gilles,would you like me to put the screenshots and database up on my
website so the people at bugzilla can see exactly what the problem is?

Elle Stone
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

Gilles Caulier-4


2011/1/7 Elle Stone <[hidden email]>
Marie-Noëlle, Jim - I thought I had seen other people mention having
the wrong thumbs on certain images. Maybe there is more than one cause
of an incorrect thumb. In this case, no other program has touched the
images since the test database was created, and nothing has been
renamed.


About this thumbs problem, this is already reported in bugzilla.

I'm not sure if it's fixed by Marcel...
 
Some of the images in the test database have the same imageHash,
verified using the SQLite database browser. I'm guessing the wrong
thumbs are because of the duplicate imageHashes.

Gilles,would you like me to put the screenshots and database up on my
website so the people at bugzilla can see exactly what the problem is?

You can attach these files to bugzilla file. one attachement is limited to 1Mb. Compress data to optimize.

Gilles

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

Elle Stone
Giles, I submitted a bug report, no attachments. It should be easy
enough to reproduce.
Elle Stone
.


On 1/7/11, Gilles Caulier <[hidden email]> wrote:

> 2011/1/7 Elle Stone <[hidden email]>
>
>> Marie-Noëlle, Jim - I thought I had seen other people mention having
>> the wrong thumbs on certain images. Maybe there is more than one cause
>> of an incorrect thumb. In this case, no other program has touched the
>> images since the test database was created, and nothing has been
>> renamed.
>>
>>
> About this thumbs problem, this is already reported in bugzilla.
>
> I'm not sure if it's fixed by Marcel...
>
>
>> Some of the images in the test database have the same imageHash,
>> verified using the SQLite database browser. I'm guessing the wrong
>> thumbs are because of the duplicate imageHashes.
>>
>> Gilles,would you like me to put the screenshots and database up on my
>> website so the people at bugzilla can see exactly what the problem is?
>>
>> You can attach these files to bugzilla file. one attachement is limited to
> 1Mb. Compress data to optimize.
>
> Gilles
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

tosca
In reply to this post by Elle Stone


2011/1/7 Elle Stone <[hidden email]>
Marie-Noëlle, Jim - I thought I had seen other people mention having
the wrong thumbs on certain images. Maybe there is more than one cause
of an incorrect thumb. In this case, no other program has touched the
images since the test database was created, and nothing has been
renamed.


In my case, no program 'outside' Digikam has touched the photos.
It was always related to RAW pictures I have treated with UFRaw, called from within Digikam.

Marie-Noëlle


--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale


_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

ozzyprv

I have encounter the same problem with some thumbnails.
When you have a chance, could you please pass along the bug #?
Thank you.

Oz.

On Fri, Jan 7, 2011 at 11:29 PM, Marie-Noëlle Augendre <[hidden email]> wrote:


2011/1/7 Elle Stone <[hidden email]>
Marie-Noëlle, Jim - I thought I had seen other people mention having

the wrong thumbs on certain images. Maybe there is more than one cause
of an incorrect thumb. In this case, no other program has touched the
images since the test database was created, and nothing has been
renamed.


In my case, no program 'outside' Digikam has touched the photos.
It was always related to RAW pictures I have treated with UFRaw, called from within Digikam.

Marie-Noëlle


--
Une galerie photos, un blog ... pourquoi pas ? Webmaster en herbe

Parcourez les Cévennes à ma façon : Cévennes Plurielles

Et toutes mes autres publications à partir de ma page d'accueil générale


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



_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: duplicate hashes in digikam 1.7 database

Elle Stone
Oz, here's the bug report:
https://bugs.kde.org/show_bug.cgi?id=262452. It is a duplicate of
https://bugs.kde.org/show_bug.cgi?id=210353, which is fixed in digikam
2.0.

Marie-Noëlle, my problem tiffs also were generated by UFRaw. The
problem seems to be that digikam generates a hash for each image only
based on the first little bit of the image. UFRaw puts all the raw
file metadata into its tiffs, so the hash doesn't get far enough into
the image to get unique information. Hashes generated over the entire
image are unique, but apparently that would take too long to do when
pulling images into a database.

digikam 2.0 will pull a bit of info from the beginning and end of each
image (which still seems to leave open the possibility of duplicate
hashes if one is in the habit of producing a series of images with
minute variations, but that is just speculation).

In the meantime, I used exiftool to remove all the metadata from the
UFRraw-produced tifs, and the metadataless tifs did provide unique
hashes. I wonder if you'd get a unique hash if you added a bit of
unique metadata to each tif - haven't tried that yet.

Elle

On 1/8/11, Ozzy <[hidden email]> wrote:

> I have encounter the same problem with some thumbnails.
> When you have a chance, could you please pass along the bug #?
> Thank you.
>
> Oz.
>
> On Fri, Jan 7, 2011 at 11:29 PM, Marie-Noëlle Augendre <[hidden email]
>> wrote:
>
>>
>>
>> 2011/1/7 Elle Stone <[hidden email]>
>>
>>> Marie-Noëlle, Jim - I thought I had seen other people mention having
>>>
>>> the wrong thumbs on certain images. Maybe there is more than one cause
>>> of an incorrect thumb. In this case, no other program has touched the
>>> images since the test database was created, and nothing has been
>>> renamed.
>>>
>>>
>> In my case, no program 'outside' Digikam has touched the photos.
>> It was always related to RAW pictures I have treated with UFRaw, called
>> from within Digikam.
>>
>> Marie-Noëlle
>>
>>
>> --
>> Une galerie photos, un blog ... pourquoi pas ? Webmaster en
>> herbe<http://www.webmaster-en-herbe.net/>
>>
>> Parcourez les Cévennes à ma façon : Cévennes
>> Plurielles<http://www.cevennes-plurielles.com>
>>
>> Et toutes mes autres publications à partir de ma page d'accueil
>> générale<http://www.marie-noelle-augendre.com>
>>
>>
>> _______________________________________________
>> Digikam-users mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
>>
>>
>
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users