Tất cả Tool›PNG to WebP
Chuyển đổi hình ảnh

PNG to WebP

png-to-webp

Use PNG to WebP through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool IDpng-to-webp
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/png

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.

Typefiles
File count1 – 1
MIME typesimage/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("png-to-webp", {
  file,
  options: { quality: 0.9 }
});
console.log(result.files, result.data, result.metadata);

Embedded

await client.mount({ tool: "png-to-webp", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.