Bug 254099 - SCAN : refresh collection with a script in commandline
Summary: SCAN : refresh collection with a script in commandline
Status: CONFIRMED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 8.5.0
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 278344 441353 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-14 00:36 UTC by anw
Modified: 2024-11-20 13:33 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Comment 11 hyperion90 2024-11-20 13:33:37 UTC
I would be really interested as well.
I created this web interface for dk: https://gitlab.com/AlessandroLucchet/digikamwebviewer
And refresh collection via CLI would be really useful.