Outils image
Batch Image Watermark
batch-image-watermark
Use Batch Image Watermark through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Accès rapide
Fichiers d’entrée 1–30Fichiers de sortie 1–30
Entrée
Formats d’entrée et nombre de fichiers acceptés par cette Tool.
| Type d’entrée | file |
|---|---|
| Nombre de fichiers | 1 – 30 |
| 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 |
|---|---|---|---|---|---|
type |
enum | Optionnel | text |
text | image | Watermark type. For image type, pass input.data.watermarkFile as a File. |
text |
string | Optionnel | © Your Brand |
— | Text watermark content. |
color |
string | Optionnel | #ffffff |
— | Text watermark color. |
opacity |
number | Optionnel | 55 |
5 – 100 | Watermark opacity percentage. |
size |
number | Optionnel | 24 |
5 – 60 | Watermark width as percentage of source width. |
rotation |
number | Optionnel | -30 |
-180 – 180 | Watermark rotation in degrees. |
margin |
number | Optionnel | 4 |
0 – 15 | Edge margin percentage. |
position |
enum | Optionnel | bottom-right |
top-left | top-center | top-right | middle-left | center | middle-right | bottom-left | bottom-center | bottom-right | Watermark position. |
format |
enum | Optionnel | jpg |
jpg | png | Output format. |
quality |
number | Optionnel | 0.92 |
0.6 – 1 | JPG quality. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files |
|---|---|
| Nombre de fichiers | 1 – 30 |
| MIME de sortie | image/jpeg, image/png |
| Metadata | inputBytes, outputBytes, outputCount |
| 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("batch-image-watermark", {
files: selectedFiles,
options: { type: "text", text: "© Your Brand", color: "#ffffff", opacity: 55 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "batch-image-watermark",
input: { files: selectedFiles },
options: { type: "text", text: "© Your Brand", color: "#ffffff", opacity: 55 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "batch-image-watermark", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.