@thi.ng/imago
Version:
JSON & API-based declarative and extensible image processing trees/pipelines
14 lines (13 loc) • 343 B
JavaScript
import { processImage } from "../proc.js";
const nestProc = async (spec, input, ctx) => {
const { procs } = spec;
ctx.logger.debug("--- nest start ---");
await Promise.all(
procs.map((p) => processImage(input.clone(), p, ctx.opts, ctx))
);
ctx.logger.debug("--- nest end ---");
return [input, false];
};
export {
nestProc
};