@at-flux/graphy-toolkit-core
v1.0.4
Published
Image and clip pipeline engine for graphy (Sharp, Zod, preset-driven steps)
Downloads
93
Readme
@at-flux/graphy-toolkit-core
Pipeline engine and image/clip services for graphy: Sharp processing, Zod schemas, and preset-driven step execution.
npm install @at-flux/graphy-toolkit-coreimport {
loadPresetsFile,
runMediaPipeline,
pickAspectBucket,
} from "@at-flux/graphy-toolkit-core";
const presets = await loadPresetsFile("./graphy-release.presets.json");
const stills = presets.stills!;
await runMediaPipeline(
{
cwd: process.cwd(),
sourceFiles: ["/photos/img.jpg"],
sourceRoot: "/photos",
distRoot: "/out",
section: stills,
},
"stills",
);Modules
| Area | Exports |
| -------- | ------------------------------------------------------------------------------------------------------------------ |
| Geometry | aspectRatio, aspectBucket, pickAspectBucket |
| Schemas | StepSchema, GraphyPresetsSchema, PipelineSchema |
| Pipeline | runMediaPipeline, collectSettings |
| Services | stillService, clipService, exifService, copyrightService, watermarkService, fsService, presetService |
| Presets | GraphyPresetsSchema, loadPresetsFile, mergePreset |
Full CLI and preset reference: monorepo README.
