[Bug 228869] New: Rename image and overwriting existing messes up the thumbnail display

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

[Bug 228869] New: Rename image and overwriting existing messes up the thumbnail display

Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869

           Summary: Rename image and overwriting existing messes up the
                    thumbnail display
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.1.0, KDE 4.4.00 (KDE 4.4.0) "release 224" (using Devel)
Installed from:    Compiled sources

When renaming a image to an existing image the thumbnail display gets
corrupted. Some of the thumbnails do not correspond any more to the images
which the thumbnail should be depicting. Running "Tools|Rebuild
Thumbnails...|Scan" seems to fix this problem. Renaming an image to an
existing, also sometimes crashes digikam.

But I think the crash is due to the fact that digikam is crashing once in
awhile when additional images are added from another application to a folder
which digikam is currently trying to display.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Marcel Wiesweg
https://bugs.kde.org/show_bug.cgi?id=228869


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #1 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-02-28 15:23:13 ---
What do you mean by "corrupted" - is it what you say in the next sentence, that
the thumbnails show a different image?

Which image is shown?

If there is a crash, give us a backtrace, unless it is one of the crashes which
are already reported.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Gilles Caulier-4
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Thumbnails
            Version|unspecified                 |1.1.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from Andreas.Floeter@web.de
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #2 from Andyfloe <Andreas Floeter web de>  2010-02-28 19:45:35 ---
Created an attachment (id=41213)
 --> (http://bugs.kde.org/attachment.cgi?id=41213)
highlighted thumbnail does not correspond to image

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from Andreas.Floeter@web.de
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #3 from Andyfloe <Andreas Floeter web de>  2010-02-28 19:46:11 ---
Yes, "corrupted" means that the map of thumbnails does not correspond to the
images which actually should be shown. I have added a screenshot which should
make it a little clearer. Furthermore, I don't know if the crashes provoke it
or if there is something else going wrong, but I found that the renaming
somehow must have failed for some images, see
"digikam_image_naming_problem_20100228.txt".

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from Andreas.Floeter@web.de
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #4 from Andyfloe <Andreas Floeter web de>  2010-02-28 19:48:27 ---
Created an attachment (id=41214)
 --> (http://bugs.kde.org/attachment.cgi?id=41214)
After renaming some files are without suffix

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Marcel Wiesweg
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #5 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-03-03 18:49:44 ---
SVN commit 1098429 by mwiesweg:

Do not exif-rotate a second time in editor - previews are rotated in the cache,
and in the case of full-size preview of a JPEG, this data will be reused
for the image editor.

CCBUG: 228869

 M  +6 -1      dimginterface.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1098429

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Marcel Wiesweg
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #6 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-03-03 18:50:50 ---
Sorry, wrong bug

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Marcel Wiesweg
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #7 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-03-10 18:50:55 ---
How did you rename the images, manually? (context menu, F2)
Can you reproduce when renaming a single image?
Does the list of images without suffix correspond to those images which show
the wrong thumbnail?

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from Andreas.Floeter@web.de
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #8 from Andyfloe <Andreas Floeter web de>  2010-03-13 11:50:41 ---
I have been on a business travel there my feedback is a little delayed. Sorry
about that.

I scanned slides. After all have been processed I fire up digikam. Then I do a
quality check and possibly re-scan some slides. The new slide might have the
name e.g. "dfd20100227_0086.jpg". I select it and with right click I choose
operation "rename" which would be F2. The slide which did not meet my quality
expectations might be "dfd20100227_0015.jpg". Therefore I rename
"dfd20100227_0086.jpg" to "dfd20100227_0015.jpg" and knowledge that I overwrite
it. During this operation it might be that I already re-scan another slide
which goes to the same folder with name e.g. "dfd20100227_0086.jpg".

It is not happening all the time that a thumbnail of the image in this folder
gets corrupted by this kind of operations. But it is not necessarily the image
which I renamed which has the wrong thumbnail associated to it.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #9 from Andi Clemens <andi clemens gmx net>  2010-11-14 23:51:47 ---
(In reply to comment #7)
> How did you rename the images, manually? (context menu, F2)
> Can you reproduce when renaming a single image?
> Does the list of images without suffix correspond to those images which show
> the wrong thumbnail?

Marcel,

I guess renaming of files is not working correctly, see this line here:
http://lxr.kde.org/source/extragear/graphics/digikam/digikam/imageviewutilities.cpp#111

We are creating the url for updating the thumbnails and other information from
the new (renamed) url, this can't work, or am I wrong here?

This might also be related to https://bugs.kde.org/show_bug.cgi?id=206866

Andi

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Marcel Wiesweg
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #10 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-11-15 09:48:00 ---
Yes, interesting observation ;-)
I think the intention was not to clean up the thumbs database but to force
regeneration of the thumbnail in case an image was overwritten. This is
probably not needed, may even lead to unnecessary work done (but the
LoadingCacheInterface call may be needed, in case of overwriting).

You are thinking along the line of cleaning up a thumbnail reference by file
path after a rename. Yes, we may indeed want to remove the file path entry in
the thumbs db, perhaps even already before doing the move. But the unique hash
reference should be kept, a rename does not change the contents.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from andi.clemens@gmx.net
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #11 from Andi Clemens <andi clemens gmx net>  2010-11-15 11:05:59 ---
In case of renaming: There is a fix in SVN for this issue:
After renaming images, go to Tools->Rebuild Thumbnails->Scan.
This will recreate all updated / missing thumbnails. It works fine here, but a
automatic solution would be better of course.

In case of overwriting the images I don't think the fix does help. We
definitely need to check more in deep for the problems described here.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from bitti@cs.tut.fi
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869


Matti Rintala <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #12 from Matti Rintala <bitti cs tut fi>  2011-02-03 10:23:18 ---
I have also noticed the "wrong thumbnail showing" bug (happened still in 1.7.0,
have not yet noticed it on 1.8.0).

However, in my case the problem shows with files where images have not been
renamed or overwritten. For example, I had an image with name
"090625_115609-d40.tif" (i.e., a unique name with datestamp and camera model).
It's thumbnail has been replaced by the thumbnail of another image in a
different directory and definitely with a different name. It seems to me that
this may have happened after I moved the other image (not the corrupted one) to
a new directory. However, neither of those images was ever renamed, and the
image with the corrupted thumbnail was older than the wrong thumbnail it was
given.

Matti

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Gilles Caulier-4
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #13 from Gilles Caulier <caulier gilles gmail com>  2011-12-19 13:57:53 ---
Andy, Matti,

This file still valid using digiKam 2.4 ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from Andreas.Floeter@web.de
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #14 from Andyfloe <Andreas Floeter web de>  2011-12-23 10:14:56 ---
On Monday 19 December 2011 14:57:54 Gilles Caulier wrote:

Hello Gilles,

At the moment I can not answer you question, because I am currently using
openSUSE 11.4 and for this version of openSUSE the version 2.4 is not
provided. I am planning to upgrade to openSUSE 12.1 in the next couple weeks.

What I can say is that the disrupted thumbnails were still present in version
2.3 when images were placed in a folder which was currently visible.

Best Regards,
Andreas


> https://bugs.kde.org/show_bug.cgi?id=228869
>
>
>
>
>
> --- Comment #13 from Gilles Caulier <caulier gilles gmail com>  2011-12-19
> 13:57:53 --- Andy, Matti,
>
> This file still valid using digiKam 2.4 ?
>
> Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Bugzilla from bitti@cs.tut.fi
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869





--- Comment #15 from Matti Rintala <bitti cs tut fi>  2011-12-27 16:49:41 ---
Unfortunately the problem manifests randomly, so it's very difficult to know if
it's been fixed or not.

But I haven't noticed any corrupted thumbnails for some time, so let's hope
it's been fixed. :-)

Matti

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Gilles Caulier-4
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #16 from Gilles Caulier <caulier gilles gmail com>  2012-01-26 13:41:37 ---
ok, i close it. Re-open if necessary...

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 228869] Rename image and overwriting existing messes up the thumbnail display

Gilles Caulier-4
In reply to this post by Bugzilla from Andreas.Floeter@web.de
https://bugs.kde.org/show_bug.cgi?id=228869

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.6.0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel