Ferramentas de imagem
Film Negative to Photo
film-negative-to-photo
Use Film Negative to Photo 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 |
|---|---|---|---|---|---|
preset |
enum | Opcional | color |
color | bw | raw | Negative processing preset. |
compensateBase |
boolean | Opcional | true |
— | Estimate and compensate film base color from image corners. |
autoLevels |
boolean | Opcional | true |
— | Automatically stretch channel levels. |
brightness |
number | Opcional | 0 |
-50 – 50 | Brightness adjustment. |
contrast |
number | Opcional | 5 |
-50 – 50 | Contrast adjustment. |
gamma |
number | Opcional | 1.05 |
0.5 – 2 | Gamma adjustment. |
saturation |
number | Opcional | 105 |
0 – 160 | Saturation percentage. |
red |
number | Opcional | 100 |
60 – 140 | Red channel balance percentage. |
green |
number | Opcional | 100 |
60 – 140 | Green channel balance percentage. |
blue |
number | Opcional | 100 |
60 – 140 | Blue channel balance percentage. |
format |
enum | Opcional | jpg |
jpg | png | Output image format. |
quality |
number | Opcional | 0.92 |
0.5 – 1 | JPG output quality from 0.5 to 1.0. Ignored for PNG. |
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 |
| 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("film-negative-to-photo", {
file,
options: { preset: "color", compensateBase: true, autoLevels: true, brightness: 0 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "film-negative-to-photo",
input: { file },
options: { preset: "color", compensateBase: true, autoLevels: true, brightness: 0 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "film-negative-to-photo", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.