Files
imagepipeline/pipelines/pipeline_watermark_f12_2000px.py
T
Frank Schwenk 5920766f42
Test / pytest (push) Failing after 35s
feat(pipelines): add watermark f12 2000px resize pipeline
Resize to 2000px max edge then apply F12 watermark darktable style.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-18 17:34:19 +02:00

32 lines
796 B
Python

#!/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()