Tất cả Tool›Xoay và lật ảnh
Công cụ hình ảnh

Xoay và lật ảnh

rotate-image

Use Rotate Image through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool IDrotate-image
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Embedded

Quick actions

Input files 1Output files 1

Đầu vào

Accepted input contract for this Tool.

Kindfile
File count1 – 1
Accepted MIME typesimage/jpeg, image/png, image/webp

Tham số

Pass these values through request.options.

Parameter Type Bắt buộc Mặc định Giá trị / Phạm vi Mô tả
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.

Đầu ra

Result contract returned after successful processing.

Typefiles
File count1 – 1
MIME typesimage/jpeg, image/png, image/webp
Metadatawidth, height, inputBytes, outputBytes
ZIP archiveNo

Ví dụ cơ bản

Choose a supported integration mode and copy the generated starter code.

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.