Outils image
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
Accès rapide
Fichiers d’entrée 1Fichiers de sortie 1–96
Entrée
Formats d’entrée et nombre de fichiers acceptés par cette Tool.
| Type d’entrée | file |
|---|---|
| Nombre de fichiers | 1 – 1 |
| MIME acceptés | image/jpeg, image/png, image/webp |
Paramètres
Transmettez ces valeurs via request.options.
| Paramètre | Type | Obligatoire | Par défaut | Valeurs / Plage | Description |
|---|---|---|---|---|---|
detection |
enum | Optionnel | auto |
auto | manual | auto detects the initial flyer grid; manual uses input.data.layout. |
format |
enum | Optionnel | jpg |
jpg | png | Output image format. |
quality |
number | Optionnel | 0.92 |
0.5 – 1 | JPG output quality from 0.5 to 1.0. |
maxLongSide |
integer | Optionnel | 0 |
0 – 4096 | Maximum output long side in pixels. 0 keeps original crop size. |
normalize |
boolean | Optionnel | false |
— | Place all split products on the same canvas size. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files |
|---|---|
| Nombre de fichiers | 1 – 96 |
| MIME de sortie | image/jpeg, image/png |
| Metadata | width, height, inputBytes, outputBytes, outputCount, columns, rows |
| Archive ZIP | Pris en charge · threshold 2 |
Utilisation de base
Choisissez un mode pris en charge et copiez le code de démarrage généré.
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.