Công cụ hình ảnh
Mosaic · Làm mờ ảnh
mosaic-blur-image
Use Mosaic / Blur Image through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
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/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ả |
|---|---|---|---|---|---|
defaultEffect |
enum | Optional | mosaic |
mosaic | blur | Default effect for regions that do not specify their own effect. |
defaultStrength |
number | Optional | 18 |
4 – 40 | Default effect strength from 4 to 40. |
format |
enum | Optional | jpg |
jpg | png | Output image format. |
quality |
number | Optional | 0.92 |
0.6 – 1 | JPG output quality from 0.6 to 1.0. |
Đầu ra
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 1 |
| MIME types | image/jpeg, image/png |
| Metadata | width, height, inputBytes, outputBytes, regionCount |
| 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("mosaic-blur-image", {
file,
options: { defaultEffect: "mosaic", defaultStrength: 18, format: "jpg", quality: 0.92 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "mosaic-blur-image",
input: { file },
options: { defaultEffect: "mosaic", defaultStrength: 18, format: "jpg", quality: 0.92 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "mosaic-blur-image", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.