Tất cả Tool›Film Negative to Photo
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 · InteractiveE · Embedded
Tool IDfilm-negative-to-photo
Version1
ExecutionCLIENT
WorkloadSTANDARD
ModesHeadless, Interactive, Embedded

Quick actions

Input files 1Output files 1

Đầu vào

Accepted input contract for this Tool.

Kindfile
File count1 – 1
Accepted MIME typesimage/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.

Typefiles
File count1 – 1
MIME typesimage/jpeg, image/png
Metadatawidth, height, inputBytes, outputBytes
ZIP archiveNo

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.