[Digikam-devel] extragear/graphics/digikam/digikam

Andi Clemens andi.clemens at gmx.net
Thu Jun 11 19:49:57 BST 2009


Hi Marcel,

just testing the thumb db. Right now it seems to be slower, especially filling 
the album thumbnails in the folderview takes up to 18 seconds here.

But there is another problem: digiKam crashes when NOT using the thumb.db.
Can you reproduce this?

If you leave the code commented, digikam will die on startup.

Andi

On Thursday 11 June 2009 19:36:44 Marcel Wiesweg wrote:
> SVN commit 980402 by mwiesweg:
>
> Adding the lines that switch on using a thumbnail database - not enabled
> per default:
>
> NOTE:
> You need to remove the comment signs around albummanager.cpp, lines
> 685-687, to test the thumbnail database.
>
> For simplicity, it is always created in the directory of the main database
> and named "thumbnails-digikam.db". It is using the PGF format to store
> thumbnails. I am aware there are suggestions to use JPEG or Djvu.
>
> Only real world testing can show if this database is a good thing or not.
>
> CCMAIL: digikam-devel at kde.org
>
>  M  +6 -0      albummanager.cpp
>
>
> --- trunk/extragear/graphics/digikam/digikam/albummanager.cpp
> #980401:980402 @@ -79,6 +79,7 @@
>  #include "databaseaccess.h"
>  #include "databaseurl.h"
>  #include "databaseparameters.h"
> +#include "databasethumbnailinfoprovider.h"
>  #include "databasewatch.h"
>  #include "dio.h"
>  #include "imagelister.h"
> @@ -680,6 +681,11 @@
>          }
>      }
>
> +    // Initialize thumbnail database
> +/*    QFileInfo thumbFile(d->dbPath, "thumbnails-digikam.db");
> +    ThumbnailLoadThread::initializeThumbnailDatabase(thumbFile.filePath(),
> new DatabaseThumbnailInfoProvider()); +    d->dirWatchBlackList <<
> "thumbnails-digikam.db" << "thumbnails-digikam.db-journal"; +*/
>      return true;
>  }
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel




More information about the Digikam-devel mailing list