Drei gleichzeitige Ausgaben: SW, Warm, Kühl
Demonstriert die Erzeugung mehrerer Ausgabebilder aus einem einzigen Eingabebild in einer Skriptausführung. Erstellt Varianten in Schwarz-Weiß, warmem Vintage-Look und kühlem, lebendigem Look.
INPUT
OUT_BW
OUT_WARM
OUT_COOL
JavaScript
// Three simultaneous outputs: BW, warm, cool
// demo_triptych.js
//!OUTPUT: OUT_BW,OUT_WARM,OUT_COOL
// demo_triptych.js — 3 simultaneous outputs from 1 source image
//
// OUT_BW, OUT_WARM, OUT_COOL are registered as output slots by the caller.
// A single EvalWithBuffers call produces all three results at once —
// clone the source, branch the chain, save under three different keys.
const src = Engine.loadImage(INPUT);
// 1. Black & white film look
src.clone()
.grayscale()
.contrast(1.35)
.sharpen(0.3)
.vignette(0.5)
.save(OUT_BW);
// 2. Warm vintage
src.clone()
.brightness(1.05)
.saturation(0.8)
.sepia()
.vignette(0.3)
.save(OUT_WARM);
// 3. Vibrant cool
src.clone()
.hue(200)
.saturation(1.6)
.contrast(1.15)
.save(OUT_COOL);
// © 2026 Michael Lechner · mlc OpticScript · https://mlcgo.eu · Elastic License 2.0