Bug 217422 - Wrong thumbnails for NEF images
Summary: Wrong thumbnails for NEF images
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Thumbs (show other bugs)
Version: 1.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-05 11:02 UTC by Simon
Modified: 2022-01-12 13:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0


Attachments
Example. (384.02 KB, image/png)
2009-12-05 11:05 UTC, Simon
Details
Correct example (could you please delete the other file?). The 4th image there is the second NEF with the same name and _correct_ thumbnail. (443.34 KB, image/png)
2009-12-05 11:08 UTC, Simon
Details
Wrong thumbnail whilst other image with the same name has alreay been deleted (459.82 KB, image/png)
2009-12-18 18:46 UTC, Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2009-12-05 11:02:47 UTC
Version:           1.0.0-rc (rev.: 1050601) (using 4.3.2 (KDE 4.3.2), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-6.slh.2-sidux-686

When I first saw this I thought it was just some temporary DB corruption.
But it is always.

As soon as I've got two different NEF files with the same name, they've got the same thumbnail.
Comment 1 Simon 2009-12-05 11:05:06 UTC
Created attachment 38844 [details]
Example.
Comment 2 Simon 2009-12-05 11:08:05 UTC
Created attachment 38845 [details]
Correct example (could you please delete the other file?). The 4th image there is the second NEF with the same name and _correct_ thumbnail.
Comment 3 Marcel Wiesweg 2009-12-05 12:32:30 UTC
Can you send me the two affected NEF files, by private mail if necessary?
Comment 4 Simon 2009-12-09 10:58:05 UTC
Sent a few days ago. Did you receive them?
Comment 5 Marcel Wiesweg 2009-12-09 19:41:06 UTC
Here I am getting correct thumbnails.
What happens if you "touch" the two files and then restart digikam?
What happens when you move your thumbnails-digikam.db file to a different place and then start digikam. Are still the wrong thumbnails produced? (just move it back afterwards)
Do you remember in which view (albums, tags, searches, timeline...) you viewed the pictures the first time, when the wrong thumbnails were created?
Comment 6 Simon 2009-12-18 18:45:25 UTC
Sorry, I will have to try move the db next year (no time now).

I just noticed that it is not only NEF files but only JPG (so likely all files). In this case the other one doesn't even exist anymore. Touching seems to work, but only after restart (I've got the correct thumb for this image now).

I think I was viewing them in Album view (I usually first let digikam generate the thumbnails to perhaps already delete some images).
Comment 7 Simon 2009-12-18 18:46:12 UTC
Created attachment 39159 [details]
Wrong thumbnail whilst other image with the same name has alreay been deleted
Comment 8 Nikolay 2009-12-19 10:50:22 UTC
I have the same problems with TIF and JPG files in much of my folders :( Its come with last upgrade. 
Also, sometime one or two files in folder is hidden (no any thumb, and no file), moving it to somewhere and back do this file visible...
Comment 9 Marcel Wiesweg 2009-12-19 16:05:10 UTC
Nikolay, upgrade from which to which version?
See also comment #5
Comment 10 Nikolay 2009-12-19 16:22:05 UTC
2:1.0.0~rc-1ubuntu1~karmic1, build date: 9 dec 2009
Comment 11 Nikolay 2009-12-19 16:23:21 UTC
sorry, previous version, I don't know. it was in previous ubuntu release...
Comment 12 Simon 2010-04-11 22:00:28 UTC
I just did a complete rebuild of my database.
The problem still exists, with exactly the same images.

digiKam version 1.2.0 (rev.: 1106102)
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: Yes
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.19.1
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.3.4 (KDE 4.3.4)
LibKExiv2: 0.5.0
LibKdcraw: 0.5.0
LibLCMS: 118
LibPGF: 6.09.44
LibPNG: 1.2.42
LibQt: 4.5.3
LibRaw: 0.7.2
LibTIFF: LIBTIFF, Version 3.9.2 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.8.1
Parallelized demosaicing: Yes
LibGphoto2: 2.4.6
LibKipi: 0.4.0
Comment 13 Simon 2010-04-11 22:20:47 UTC
Example video:
http://granjow.net/uploads/temp/digikam-wrong-thumbnail.avi
Comment 14 Marcel Wiesweg 2010-06-04 20:23:13 UTC
Please have a look at bug 233222:
There was a problem with wrong thumbnails in combination with a wrong file size displayed. Is the file size for affected images correct for you?
Comment 15 Simon 2010-06-08 21:47:32 UTC
Yes -- but due to my problems when building digikam from SVN I've rebuilt the database several times in the meantime. I also cannot reproduce the bug anymore now, so I assume it was the same problem as in #233222.
Comment 16 caulier.gilles 2010-06-09 00:38:27 UTC

*** This bug has been marked as a duplicate of bug 233222 ***
Comment 17 caulier.gilles 2022-01-12 13:15:42 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=233222