[Kde-imaging] [Bug 152208] Comments lost when converting from png to jpeg

Paweł Marciniak pave at o2.pl
Sun Nov 18 13:20:51 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=152208         




------- Additional Comments From pave o2 pl  2007-11-18 13:20 -------
OK, I spotted the beast. The problem is a race condition between cloning metadata and inserting the new image to the database.

The AlbumManager::slotDirty() method, fired by KDirWatcher, MAY or MAY NOT trigger and insert new picture to the database before the metadata is being cloned. This depends on the time it takes for the ImageMagick's convert to finish. Apparently my computer is too fast ;) so I wrapped convert with a script that adds "sleep 5" at the end, and now everything works correctly.

Not attempting to suggest a patch, as this probably requires deep knowledge of DigiKam architecture and perhaps some changes in the design.


More information about the Kde-imaging mailing list