[postprocessor:metadata] add 'tags' and 'custom' modes (#135)

This commit is contained in:
Mike Fährmann
2019-01-17 21:18:12 +01:00
parent 79c01ec7ae
commit 8aba2bdebf
2 changed files with 88 additions and 10 deletions

View File

@@ -1083,6 +1083,44 @@ Description The command to run.
=========== =====
metadata
--------
Write image metadata to separate files
metadata.mode
-------------
=========== =====
Type ``string``
Default ``"json"``
Description Select how to write metadata.
- ``"json"``: all metadata using `json.dump()
<https://docs.python.org/3/library/json.html#json.dump>`_
- ``"tags"``: ``tags`` separated by newlines
- ``"custom"``: result of applying `metadata.format`_ to a file's
metadata dictionary
=========== =====
metadata.extension
------------------
=========== =====
Type ``string``
Default ``"json"`` or ``"txt"``
Description Filename extension for metadata files.
=========== =====
metadata.format
---------------
=========== =====
Type ``string``
Example ``"tags:\n\n{tags:J\n}\n"``
Description Custom format string to build content of metadata files.
Note: Only applies for ``"mode": "custom"``.
=========== =====
ugoira
------