Todas as Tools›Film Negative to Photo
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 · InteractiveE · Embedded
ID da Toolfilm-negative-to-photo
Versão1
ExecuçãoCLIENT
ModosHeadless, Interactive, Embedded

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 entradafile
N.º de arquivos1 – 1
MIME aceitosimage/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.

Tipofiles
N.º de arquivos1 – 1
MIME de saídaimage/jpeg, image/png
Metadatawidth, height, inputBytes, outputBytes
Arquivo ZIPNã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.