Công cụ hình ảnh
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
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ả |
|---|---|---|---|---|---|
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. |
Đầ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 |
| 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("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.