# 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'''