Summary: | Wrong thumbnails after save as | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Julien Narboux <Julien> |
Component: | Thumbs-Image | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, marcel.wiesweg |
Priority: | NOR | ||
Version: | 1.1.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.2.0 | |
Sentry Crash Report: | |||
Attachments: | Snapshot which shows that the thumbnail is the wrong one |
Description
Julien Narboux
2010-01-09 14:50:58 UTC
Created attachment 39711 [details]
Snapshot which shows that the thumbnail is the wrong one
I could indeed reproduce that in one out of four attempts. One important question: Is the thumbnail still wrong after a restart of digikam? Marcel, Good guess ! the thumbnail is the right one after a restart of Digikam. I also noticed that I used save as png file and whereas I had enabled sort by file type view, the new picture has been added in the JPG section instead of png section of the thumbnail view. After a restart this was fixed as well. Julien No good idea currently. I plan to rewrite the thumbbar with model/view for 1.2. I will revisit this bug then. Marcel, I do not think this is related to thumbar. The wrong thumbnails also appear in the 'normal' view. Julien I have incidentally found the problem here: We use ImageInfo.copyItem, which is meant for a simple copy. It also copies the unique hash, so the thumbnail for the original image is used. After a collection scan (restart) this is corrected. I need to fix that by removing usage of copyItem and instead more selectively copy the needed fields. SVN commit 1096751 by mwiesweg: Add methods to copy all appropriate properties from source to derived image. Every copied field is explicitly selected. This differs from copyItem, which just copies everything and should not be used. CCBUG: 221918 M +25 -12 collectionscanner.cpp M +12 -4 collectionscanner.h M +34 -0 imagescanner.cpp M +10 -0 imagescanner.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1096751 SVN commit 1096752 by mwiesweg: Add a method to ScanController that scans an image directly and then copies the relevant attributes of another image to it. When creating a new image in the image editor use this functionality. BUG: 221918 M +2 -1 NEWS M +14 -0 digikam/scancontroller.cpp M +6 -0 digikam/scancontroller.h M +3 -1 utilities/imageeditor/editor/imagewindow.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1096752 |