From 5920766f42fd588ccc8c6c905fe2f8c6f86c5734 Mon Sep 17 00:00:00 2001 From: Frank Schwenk Date: Sat, 18 Jul 2026 17:34:19 +0200 Subject: [PATCH] feat(pipelines): add watermark f12 2000px resize pipeline Resize to 2000px max edge then apply F12 watermark darktable style. Co-authored-by: Cursor --- pipelines/pipeline_watermark_f12_2000px.py | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pipelines/pipeline_watermark_f12_2000px.py diff --git a/pipelines/pipeline_watermark_f12_2000px.py b/pipelines/pipeline_watermark_f12_2000px.py new file mode 100644 index 0000000..f92b36d --- /dev/null +++ b/pipelines/pipeline_watermark_f12_2000px.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +"""Resize to 2000px max edge, then colorsplash + F12 watermark darktable style.""" + +from pathlib import Path + +from imagepipeline import Pipeline + +INPUT = Path( + "/home/frank/pics/20260712_Aichelberg Indians - Heidelberg Hedgehogs/darktable_exported/edits" +) +OUTPUT_BASE = Path.home() / "pipeline_output" + +MAX_EDGE = 2000 +STYLE = "Watermark F12.rocks" + + +def main() -> None: + with Pipeline( + name="watermark_f12_2000px", + input_dir=INPUT, + output_base=OUTPUT_BASE, + ) as p: + resized = p.step("imagemagick_resize", inputs="input", max_edge=MAX_EDGE) + p.step("darktable_style", inputs=resized, style=STYLE) + output_root = p.run() + + print(f"Pipeline finished. Output: {output_root}") + + +if __name__ == "__main__": + main()