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

Paweł Marciniak pave at o2.pl
Tue Nov 13 14:31:28 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-13 14:31 -------
Actually, the behavior is completely random and the above rule doesn't hold all the time.

I'm pretty sure it's some kind of a race condition in the digiKam database.
What I've found so far is that the reason for not storing comments in some of the newly generated jpegs is that the image is not yet in the database when digiKam tries to add a caption to it.

Details:
The AlbumDB::getImageId(int albumID, const QString& name) method returns -1 for the unlucky images. The albumID and name parameters are correct, so the only reason is that the required row is not yet in the database. When I rerun the query with sqlite3 command once the batch process is finished, the images in question are already in the database, but without any caption.


More information about the Kde-imaging mailing list