Alle Tools›Batch Image Watermark
Bild-Tools

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 · InteractiveE · Embedded
Tool-IDbatch-image-watermark
Version1
AusführungCLIENT
ModiHeadless, Interactive, Embedded

Schnellzugriff

Eingabedateien 1–30Ausgabedateien 1–30

Eingabe

Zulässige Eingabeformate und Dateianzahl für dieses Tool.

Eingabetypfile
Dateianzahl1 – 30
Zulässige MIME-Typenimage/jpeg, image/png, image/webp

Parameter

Diese Werte über request.options übergeben.

Parameter Typ Erforderlich Standard Zulässig / Bereich Beschreibung
type enum Optional text text | image Watermark type. For image type, pass input.data.watermarkFile as a File.
text string Optional © Your Brand — Text watermark content.
color string Optional #ffffff — Text watermark color.
opacity number Optional 55 5 – 100 Watermark opacity percentage.
size number Optional 24 5 – 60 Watermark width as percentage of source width.
rotation number Optional -30 -180 – 180 Watermark rotation in degrees.
margin number Optional 4 0 – 15 Edge margin percentage.
position enum Optional bottom-right top-left | top-center | top-right | middle-left | center | middle-right | bottom-left | bottom-center | bottom-right Watermark position.
format enum Optional jpg jpg | png Output format.
quality number Optional 0.92 0.6 – 1 JPG quality.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

Typfiles
Dateianzahl1 – 30
Ausgabe-MIMEimage/jpeg, image/png
MetadatainputBytes, outputBytes, outputCount
ZIP-ArchivUnterstützt · threshold 2

Grundlegende Verwendung

Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.

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.