32 lines
804 B
Python
32 lines
804 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/20260726_Hellraisers Schlossplatz die Zweite/darktable_exported/gimp"
|
|
)
|
|
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, out_ext="jpg")
|
|
output_root = p.run()
|
|
|
|
print(f"Pipeline finished. Output: {output_root}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|