Ferramentas de imagem
Mosaic / Blur Image
mosaic-blur-image
Use Mosaic / Blur Image through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Ações rápidas
Arquivos de entrada 1Arquivos de saída 1
Entrada
Formatos de entrada e quantidade de arquivos aceitos por esta Tool.
| Tipo de entrada | file |
|---|---|
| N.º de arquivos | 1 – 1 |
| MIME aceitos | image/jpeg, image/png, image/webp |
Parâmetros
Passe estes valores por request.options.
| Parâmetro | Tipo | Obrigatório | Padrão | Valores / Faixa | Descrição |
|---|---|---|---|---|---|
defaultEffect |
enum | Opcional | mosaic |
mosaic | blur | Default effect for regions that do not specify their own effect. |
defaultStrength |
number | Opcional | 18 |
4 – 40 | Default effect strength from 4 to 40. |
format |
enum | Opcional | jpg |
jpg | png | Output image format. |
quality |
number | Opcional | 0.92 |
0.6 – 1 | JPG output quality from 0.6 to 1.0. |
Saída
Formato do resultado retornado após o processamento.
| Tipo | files |
|---|---|
| N.º de arquivos | 1 – 1 |
| MIME de saída | image/jpeg, image/png |
| Metadata | width, height, inputBytes, outputBytes, regionCount |
| Arquivo ZIP | Não suportado |
Uso básico
Escolha um modo suportado e copie o código inicial gerado.
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.