Tất cả Tool›Tăng chất lượng ảnh
Công cụ hình ảnh

Tăng chất lượng ảnh

image-enhancer

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

H · HeadlessI · InteractiveE · Embedded
Tool IDimage-enhancer
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Interactive, 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ả
preset enum Optional balanced natural | balanced | vivid Automatic enhancement strength.
auto boolean Optional true — Analyze the image and use automatic correction as the base settings.
brightness number Optional — -50 – 50 Brightness adjustment.
contrast number Optional — -50 – 50 Contrast adjustment.
saturation number Optional — -50 – 50 Saturation adjustment.
temperature number Optional — -50 – 50 Color temperature adjustment.
highlights number Optional — -50 – 50 Highlight adjustment.
shadows number Optional — -50 – 50 Shadow adjustment.
sharpness number Optional — 0 – 60 Sharpness adjustment.
denoise number Optional — 0 – 60 Noise reduction amount.
format enum Optional jpg jpg | png | webp Output image format.
quality number Optional 0.92 0.6 – 1 JPG/WebP output quality.

Đầu ra

Result contract returned after successful processing.

Typefiles
File count1 – 1
MIME typesimage/jpeg, image/png, image/webp
MetadatainputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise
ZIP archiveNo

Ví dụ cơ bản

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

Headless

const result = await client.run("image-enhancer", {
  file,
  options: { preset: "balanced", auto: true }
});
console.log(result.files, result.data, result.metadata);

Interactive

await client.open({
  tool: "image-enhancer",
  input: { file },
  options: { preset: "balanced", auto: true },
  onComplete(result) { console.log(result.files, result.data, result.metadata); }
});

Embedded

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