Revision 1205197

Go back to digest for 12th December 2010

Features in Graphics

Marcel Wiesweg committed changes in /branches/extragear/graphics/digikam:

Implement uniqueHash V2.
The hash has now a very simple specification: First 100 kB, last 100 kB.
All problematic cases known to me are solved.

1) Any new database created with 2.0 will use the new hash.
That means you cannot use it with 1.x.
2) Any upgraded database from 1.x will keep the old hash.
That means you can use it in parallel with 1.x.
3) There is a button to carry out an explicit update on the
Database setup page, for those that want the new hash
for an updated database
When upgrading, the thumbnail database will be updated in parallel,
so nothing is lost.
4) The HistoryImageId in the history XML in metadata will only use the V2
hash, because it is effectively not possible to specify the generation of
the old hash, while the V2 hash is easily specified.
If you have an updated DB with V1 hash, the history image id may not always
contain the hash. (it is optional)

File Changes

Modified 22 files
  • /branches/extragear/graphics/digikam
  •   /digikam/scancontroller.cpp
  •   /digikam/scancontroller.h
  •   /libs/database/albumdb.cpp
  •   /libs/database/albumdb.h
  •   /libs/database/collectionscanner.cpp
  •   /libs/database/collectionscanner.h
  •   /libs/database/imageinfo.cpp
  •   /libs/database/imagescanner.cpp
  •   /libs/database/imagescanner.h
  •   /libs/database/schemaupdater.cpp
  •   /libs/database/schemaupdater.h
  •   /libs/database/thumbnaildatabaseaccess.cpp
  •   /libs/database/thumbnaildatabaseaccess.h
  •   /libs/database/thumbnaildb.cpp
  •   /libs/database/thumbnaildb.h
  •   /libs/dimg/dimg.cpp
  •   /libs/dimg/dimg.h
  •   /utilities/setup/setupdatabase.cpp
  •   /utilities/setup/setupdatabase.h
  •   /libs/dimg/loaders/dimgloader.cpp
  •   /libs/dimg/loaders/dimgloader.h
  •   /libs/widgets/common/databasewidget.h
22 files changed in total