-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
49 lines (31 loc) · 1.33 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Author: Stefan Klinger (www.stefan-klinger.de)
License: GNU General Public License Version 3
Synopsis
--------
A collection of experimental scripts and examples.
* `scrubMetadataOnExport.lua`
This script extends darktables "export selected" module with a
target storage option "scrub metadata". This serves as an example
of how to automatically run external programs on exported images.
You should adapt it to your own use case.
* `myExportProcess.lua`
A slightly more elaborate version of the above. That's what I
actually use.
* `applyStyleOnImport.lua`
Registers one style which is automatically applied on all new
imports.
Installation
------------
$ dtConfigDir="${HOME}/.config/darktable"
$ luaScripts="${dtConfigDir}/lua"
Copy, git-clone or symlink this directory *into* `$luaScripts`. You
may change the name of this directory from `dtscripts` to something
else in order to omit conflicts, see Note below.
Example: From the directory of this README
$ ln -sT "$(realpath .)" "${luaScripts}/dtscripts"
Then require the desired scripts from `luarc`. The result might look
like this:
$ cat "${dtConfigDir}/luarc"
require('dtscripts/scrubMetadataOnExport')
Note: If you've named the symlink `${luaScripts}/foobar` instead,
you'd have to `require('foobar/scrubMetadataOnExport')`.