Bild-Tools
Rotate Image
rotate-image
Use Rotate Image through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Schnellzugriff
Eingabedateien 1Ausgabedateien 1
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file |
|---|---|
| Dateianzahl | 1 – 1 |
| Zulässige MIME-Typen | image/jpeg, image/png, image/webp |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
rotation |
enum | Optional | 0 |
0 | 90 | 180 | 270 | Clockwise rotation in degrees. |
flipX |
boolean | Optional | false |
— | Flip horizontally. |
flipY |
boolean | Optional | false |
— | Flip vertically. |
format |
enum | Optional | original |
original | jpg | png | webp | Output image format. |
quality |
number | Optional | 0.92 |
0.5 – 1 | Output quality from 0.5 to 1.0. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files |
|---|---|
| Dateianzahl | 1 – 1 |
| Ausgabe-MIME | image/jpeg, image/png, image/webp |
| Metadata | width, height, inputBytes, outputBytes |
| ZIP-Archiv | Nicht unterstützt |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
Headless
const result = await client.run("rotate-image", {
file,
options: { rotation: 0, flipX: false, flipY: false, format: "original" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "rotate-image", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.