Image Tools
Product Flyer Splitter
product-flyer-splitter
Use Product Flyer Splitter through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Quick actions
Input files 1Output files 1–96
Input
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | image/jpeg, image/png, image/webp |
Parameters
Pass these values through request.options.
| Parameter | Type | Required | Default | Allowed / Range | Description |
|---|---|---|---|---|---|
detection |
enum | Optional | auto |
auto | manual | auto detects the initial flyer grid; manual uses input.data.layout. |
format |
enum | Optional | jpg |
jpg | png | Output image format. |
quality |
number | Optional | 0.92 |
0.5 – 1 | JPG output quality from 0.5 to 1.0. |
maxLongSide |
integer | Optional | 0 |
0 – 4096 | Maximum output long side in pixels. 0 keeps original crop size. |
normalize |
boolean | Optional | false |
— | Place all split products on the same canvas size. |
Output
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 96 |
| MIME types | image/jpeg, image/png |
| Metadata | width, height, inputBytes, outputBytes, outputCount, columns, rows |
| ZIP archive | Yes · threshold 2 |
Basic usage
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("product-flyer-splitter", {
file,
options: { detection: "auto", format: "jpg", quality: 0.92, maxLongSide: 0 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "product-flyer-splitter",
input: { file },
options: { detection: "auto", format: "jpg", quality: 0.92, maxLongSide: 0 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "product-flyer-splitter", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.