A combination of a darktable lua script and python scripts to export files in darktable and automatically create a js lightgallery from them

Markus Spring 1f9c872c30 initial release 1 yıl önce
LICENSE ccc46bbe26 Initial commit 1 yıl önce
README.md e5e9c3da18 adding to documentation 1 yıl önce
all_galleries.py 1f9c872c30 initial release 1 yıl önce
create_gallery_index.py 1f9c872c30 initial release 1 yıl önce
create_gallery_search.py 1f9c872c30 initial release 1 yıl önce
create_lightgallery.py 0379130aaf code for on-the-fly zip creation added 1 yıl önce
export_to_lightgallery.lua d7b1d03936 bug with tag creation fixed 1 yıl önce

README.md

darktable_to_lightgallery

A combination of a darktable lua script and python scripts to export files in darktable and automatically create a js lightgallery from them

The Darktable Part

consists of export_to_lightgallery.lua. This script adds a module to the right side of darktable, showing

  • a entry field for the gallery title
  • a directory chooser for the target directory
  • a entry field for the uplink url
  • a checkbox for the attachment of the "photography|published|gallery|family" tag
  • a "Run"-Button
  • a "Help" Link

Running it

A click on the run button starts

  • the export of all selected files to the chosen directory with a jpg quality of 92 and a max width/height of 2500px
  • and runs the python script "create_lightgallery.py" in that directory All the entries in the dialog get saved.

The python part

After writing the images to the gallery directory, the python script "create_lightgallery.py" creates thumbnails, a header image and the index.html. Helper scripts create an overarching index.html linking to subgalleries with a javascript implementation of a searchable index of all the keywords.

Todo

There are still quirks with German umlauts.

The running of the helper scripts shall be automatized as a task immediately following a gallery creation instead of depending on inotify voodoo.

'''git config --global credential.helper store'''