Bug 254099

Summary: SCAN : refresh collection with a script in commandline
Product: [Applications] digikam Reporter: anw <antoine.public>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: bcr, caulier.gilles, iwannaberich, johannes, julien.t43+kde, michael.zoehrer, stefan.mueller.83
Priority: NOR    
Version: 2.8.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description anw 2010-10-14 00:36:27 UTC
Version:           1.4.0
OS:                Linux

Digikam is excellent for sharing a remote collection between computers, with photos hosted on a central server (and using a common MySQL database).

The only drawback of such setup is that scanning the whole collection from a remote computer is very slow over network (also it sometimes crashes on windows clients).

This issue could be fixed by providing a command-line argument for scanning/refreshing the collection.

- the local scan would be way faster from the server itselfs
- it would be possible to planify a cron for automatically scanning the collection. That way, clients woudln't have to scan/refresh collection themselves. The collection would be always up-to-date!

That would be awesome! How hard would it be to implement?

Reproducible: Didn't try
Comment 1 Marcel Wiesweg 2010-10-14 10:08:26 UTC
>  How hard would it be to implement?

a) Server provides an X.org connection: Pretty straightforward
b) Server does not run X.org, but provides X/QtGui libraries to link: Would need a separate main()/executable using only QCoreApplication. Would need to check if any backend stuff accesses QtGui (QPixmaps etc.). Should work though.
c) Only QtCore available: Major restructuring needed. Really, no.
Comment 2 julien.t43+kde 2012-12-01 19:54:37 UTC
similar request here Bug 278344 - more scripting from command-line
still valid in 2.8.0
Comment 3 caulier.gilles 2014-08-07 05:57:20 UTC
*** Bug 278344 has been marked as a duplicate of this bug. ***
Comment 4 bcr 2016-07-03 16:16:46 UTC
As users start to leverage digiKam's new ability to use remote databases, I can see the need for this growing exponentially.  Running a headless version of digiKam on a NAS would eliminate unnecessary network traffic.

From the cmd line I'd like to be able to import images from a specified directory, reindex all metadata, generate thumbnails, etc.  Log files generated would denote what succeeded/failed.

Commands could be specified directly while another argument would specify a path to a configuration file.
Comment 5 stefan.mueller.83 2019-01-09 21:15:28 UTC
any chance that it could be realized after the DK 6 release?
Comment 6 MarcP 2019-01-12 01:35:14 UTC
I would be really interested as well.
Comment 7 Michael 2021-03-04 08:38:31 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Maik Qualmann 2021-08-22 11:10:17 UTC
*** Bug 441353 has been marked as a duplicate of this bug. ***
Comment 9 Michael 2021-09-11 23:18:08 UTC
Has someone tried https://docs.linuxserver.io/images/docker-digikam
Is this an option to run it on a server and doing database updates?
Comment 10 caulier.gilles 2021-09-12 01:36:11 UTC
Hi,

I never tried Docker solution yet with digiKam.

Best regards

Gilles Caulier