Chuyển đổi hình ảnh
WebP to JPG
webp-to-jpg
Use WebP to JPG through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 1Output files 1
Đầu vào
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | 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ả |
|---|---|---|---|---|---|
quality |
number | Optional | 0.9 |
0.1 – 1 | Output quality from 0.1 to 1.0. |
Đầu ra
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 1 |
| MIME types | image/jpeg |
| Metadata | width, height, inputBytes, outputBytes |
| ZIP archive | No |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("webp-to-jpg", {
file,
options: { quality: 0.9 }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "webp-to-jpg", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.