すべての Tool›Film Negative to Photo
画像ツール

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
バージョン1
実行方式CLIENT
対応モードHeadless, Interactive, Embedded

クイック操作

入力ファイル 1出力ファイル 1

入力

この Tool が受け付ける入力形式とファイル数です。

入力種類file
ファイル数1 – 1
対応 MIMEimage/jpeg, image/png, image/webp

パラメータ

これらの値は request.options で渡します。

パラメータ 型 必須 既定値 許可値 / 範囲 説明
preset enum 任意 color color | bw | raw Negative processing preset.
compensateBase boolean 任意 true — Estimate and compensate film base color from image corners.
autoLevels boolean 任意 true — Automatically stretch channel levels.
brightness number 任意 0 -50 – 50 Brightness adjustment.
contrast number 任意 5 -50 – 50 Contrast adjustment.
gamma number 任意 1.05 0.5 – 2 Gamma adjustment.
saturation number 任意 105 0 – 160 Saturation percentage.
red number 任意 100 60 – 140 Red channel balance percentage.
green number 任意 100 60 – 140 Green channel balance percentage.
blue number 任意 100 60 – 140 Blue channel balance percentage.
format enum 任意 jpg jpg | png Output image format.
quality number 任意 0.92 0.5 – 1 JPG output quality from 0.5 to 1.0. Ignored for PNG.

出力

処理完了後に返される結果形式です。

型files
ファイル数1 – 1
出力 MIMEimage/jpeg, image/png
Metadatawidth, height, inputBytes, outputBytes
ZIP アーカイブ非対応

基本例

対応する統合モードを確認し、生成された開始コードをコピーできます。

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.