Bild-Tools
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
Schnellzugriff
Eingabedateien 1Ausgabedateien 1
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file |
|---|---|
| Dateianzahl | 1 – 1 |
| Zulässige MIME-Typen | image/jpeg, image/png, image/webp |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
preset |
enum | Optional | color |
color | bw | raw | Negative processing preset. |
compensateBase |
boolean | Optional | true |
— | Estimate and compensate film base color from image corners. |
autoLevels |
boolean | Optional | true |
— | Automatically stretch channel levels. |
brightness |
number | Optional | 0 |
-50 – 50 | Brightness adjustment. |
contrast |
number | Optional | 5 |
-50 – 50 | Contrast adjustment. |
gamma |
number | Optional | 1.05 |
0.5 – 2 | Gamma adjustment. |
saturation |
number | Optional | 105 |
0 – 160 | Saturation percentage. |
red |
number | Optional | 100 |
60 – 140 | Red channel balance percentage. |
green |
number | Optional | 100 |
60 – 140 | Green channel balance percentage. |
blue |
number | Optional | 100 |
60 – 140 | Blue channel balance percentage. |
format |
enum | Optional | jpg |
jpg | png | Output image format. |
quality |
number | Optional | 0.92 |
0.5 – 1 | JPG output quality from 0.5 to 1.0. Ignored for PNG. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files |
|---|---|
| Dateianzahl | 1 – 1 |
| Ausgabe-MIME | image/jpeg, image/png |
| Metadata | width, height, inputBytes, outputBytes |
| ZIP-Archiv | Nicht unterstützt |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
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.