Three simultaneous outputs: BW, warm, cool

Demonstrates how to generate multiple output images from a single input in one script execution. Produces black & white, warm vintage, and vibrant cool variants.

INPUT
INPUT — Three simultaneous outputs: BW, warm, cool
OUT_BW
OUT_BW — Three simultaneous outputs: BW, warm, cool
OUT_WARM
OUT_WARM — Three simultaneous outputs: BW, warm, cool
OUT_COOL
OUT_COOL — Three simultaneous outputs: BW, warm, 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