@nodetool-ai/image-nodes 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -0
- package/dist/.nodetool-build-stamp +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/game.d.ts +68 -0
- package/dist/nodes/game.d.ts.map +1 -0
- package/dist/nodes/game.js +551 -0
- package/dist/nodes/game.js.map +1 -0
- package/dist/nodes/gpu-device.d.ts +59 -0
- package/dist/nodes/gpu-device.d.ts.map +1 -0
- package/dist/nodes/gpu-device.js +144 -0
- package/dist/nodes/gpu-device.js.map +1 -0
- package/dist/nodes/image-io.d.ts +122 -0
- package/dist/nodes/image-io.d.ts.map +1 -0
- package/dist/nodes/image-io.js +381 -0
- package/dist/nodes/image-io.js.map +1 -0
- package/dist/nodes/image.d.ts +649 -0
- package/dist/nodes/image.d.ts.map +1 -0
- package/dist/nodes/image.js +2827 -0
- package/dist/nodes/image.js.map +1 -0
- package/dist/nodes/lib-grid.d.ts +19 -0
- package/dist/nodes/lib-grid.d.ts.map +1 -0
- package/dist/nodes/lib-grid.js +134 -0
- package/dist/nodes/lib-grid.js.map +1 -0
- package/dist/nodes/lib-image-channel.d.ts +38 -0
- package/dist/nodes/lib-image-channel.d.ts.map +1 -0
- package/dist/nodes/lib-image-channel.js +55 -0
- package/dist/nodes/lib-image-channel.js.map +1 -0
- package/dist/nodes/lib-image-color-grading.d.ts +3 -0
- package/dist/nodes/lib-image-color-grading.d.ts.map +1 -0
- package/dist/nodes/lib-image-color-grading.js +1080 -0
- package/dist/nodes/lib-image-color-grading.js.map +1 -0
- package/dist/nodes/lib-image-color.d.ts +96 -0
- package/dist/nodes/lib-image-color.d.ts.map +1 -0
- package/dist/nodes/lib-image-color.js +150 -0
- package/dist/nodes/lib-image-color.js.map +1 -0
- package/dist/nodes/lib-image-draw.d.ts +4 -0
- package/dist/nodes/lib-image-draw.d.ts.map +1 -0
- package/dist/nodes/lib-image-draw.js +464 -0
- package/dist/nodes/lib-image-draw.js.map +1 -0
- package/dist/nodes/lib-image-effects.d.ts +72 -0
- package/dist/nodes/lib-image-effects.d.ts.map +1 -0
- package/dist/nodes/lib-image-effects.js +123 -0
- package/dist/nodes/lib-image-effects.js.map +1 -0
- package/dist/nodes/lib-image-enhance.d.ts +3 -0
- package/dist/nodes/lib-image-enhance.d.ts.map +1 -0
- package/dist/nodes/lib-image-enhance.js +442 -0
- package/dist/nodes/lib-image-enhance.js.map +1 -0
- package/dist/nodes/lib-image-filter-extras.d.ts +72 -0
- package/dist/nodes/lib-image-filter-extras.d.ts.map +1 -0
- package/dist/nodes/lib-image-filter-extras.js +110 -0
- package/dist/nodes/lib-image-filter-extras.js.map +1 -0
- package/dist/nodes/lib-image-filter.d.ts +3 -0
- package/dist/nodes/lib-image-filter.d.ts.map +1 -0
- package/dist/nodes/lib-image-filter.js +588 -0
- package/dist/nodes/lib-image-filter.js.map +1 -0
- package/dist/nodes/lib-image-generators.d.ts +71 -0
- package/dist/nodes/lib-image-generators.d.ts.map +1 -0
- package/dist/nodes/lib-image-generators.js +158 -0
- package/dist/nodes/lib-image-generators.js.map +1 -0
- package/dist/nodes/lib-image-keyer.d.ts +34 -0
- package/dist/nodes/lib-image-keyer.d.ts.map +1 -0
- package/dist/nodes/lib-image-keyer.js +61 -0
- package/dist/nodes/lib-image-keyer.js.map +1 -0
- package/dist/nodes/lib-image-mask.d.ts +47 -0
- package/dist/nodes/lib-image-mask.d.ts.map +1 -0
- package/dist/nodes/lib-image-mask.js +59 -0
- package/dist/nodes/lib-image-mask.js.map +1 -0
- package/dist/nodes/lib-image-utils.d.ts +16 -0
- package/dist/nodes/lib-image-utils.d.ts.map +1 -0
- package/dist/nodes/lib-image-utils.js +61 -0
- package/dist/nodes/lib-image-utils.js.map +1 -0
- package/dist/nodes/lib-image-warp.d.ts +112 -0
- package/dist/nodes/lib-image-warp.d.ts.map +1 -0
- package/dist/nodes/lib-image-warp.js +236 -0
- package/dist/nodes/lib-image-warp.js.map +1 -0
- package/dist/nodes/lib-shader-utils.d.ts +105 -0
- package/dist/nodes/lib-shader-utils.d.ts.map +1 -0
- package/dist/nodes/lib-shader-utils.js +452 -0
- package/dist/nodes/lib-shader-utils.js.map +1 -0
- package/dist/nodes/sketch.d.ts +62 -0
- package/dist/nodes/sketch.d.ts.map +1 -0
- package/dist/nodes/sketch.js +325 -0
- package/dist/nodes/sketch.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,1080 @@
|
|
|
1
|
+
import { BaseNode, registerDeclaredProperty } from "@nodetool-ai/node-sdk";
|
|
2
|
+
import * as d from "typegpu/data";
|
|
3
|
+
import { vignetteV1, colorHsbV1, colorColorBalanceV1, colorExposureToneV1, colorLiftGammaGainV1, colorCdlV1, colorCurvesV1, colorHslAdjustV1, colorSplitToningV1, colorFilmLookV1 } from "@nodetool-ai/gpu/pool";
|
|
4
|
+
import { pickImage, hsvToRgb } from "./lib-image-utils.js";
|
|
5
|
+
import { num, runShaderNode } from "./lib-shader-utils.js";
|
|
6
|
+
import { tagAsBrowserGpu, tagAsContentCard } from "@nodetool-ai/nodes-utils";
|
|
7
|
+
/**
|
|
8
|
+
* Cinematic film-look presets. Each resolves to a shadow/highlight tint plus
|
|
9
|
+
* contrast / saturation / fade scalars that `color.filmLook@1` applies on the
|
|
10
|
+
* GPU. Kept on the host because the preset is a discrete enum, not a per-pixel
|
|
11
|
+
* input — the shader stays a generic grade.
|
|
12
|
+
*/
|
|
13
|
+
const FILM_PRESETS = {
|
|
14
|
+
TEAL_ORANGE: { shadow: [0.0, 0.5, 0.55], highlight: [1.0, 0.78, 0.6], contrast: 1.1, saturation: 1.1, fade: 0 },
|
|
15
|
+
BLOCKBUSTER: { shadow: [0.12, 0.24, 0.35], highlight: [1.0, 0.9, 0.78], contrast: 1.2, saturation: 1.0, fade: 0 },
|
|
16
|
+
NOIR: { shadow: [0.2, 0.2, 0.24], highlight: [0.86, 0.86, 0.9], contrast: 1.4, saturation: 0.3, fade: 0 },
|
|
17
|
+
VINTAGE: { shadow: [0.4, 0.32, 0.24], highlight: [1.0, 0.94, 0.78], contrast: 0.9, saturation: 0.8, fade: 0.15 },
|
|
18
|
+
COLD_BLUE: { shadow: [0.16, 0.24, 0.4], highlight: [0.78, 0.86, 1.0], contrast: 1.1, saturation: 0.9, fade: 0 },
|
|
19
|
+
WARM_SUNSET: { shadow: [0.47, 0.24, 0.16], highlight: [1.0, 0.86, 0.7], contrast: 1.0, saturation: 1.3, fade: 0 },
|
|
20
|
+
MATRIX: { shadow: [0.0, 0.16, 0.0], highlight: [0.6, 1.0, 0.6], contrast: 1.3, saturation: 0.7, fade: 0 },
|
|
21
|
+
BLEACH_BYPASS: { shadow: [0.24, 0.24, 0.27], highlight: [0.94, 0.94, 0.98], contrast: 1.5, saturation: 0.5, fade: 0.05 },
|
|
22
|
+
CROSS_PROCESS: { shadow: [0.0, 0.2, 0.3], highlight: [1.0, 0.9, 0.5], contrast: 1.2, saturation: 1.2, fade: 0 },
|
|
23
|
+
FADED_FILM: { shadow: [0.3, 0.28, 0.26], highlight: [0.95, 0.92, 0.88], contrast: 0.85, saturation: 0.7, fade: 0.2 }
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Normalized hue windows (`[lo, hi]` in turns) for `HSLAdjust`'s color-range
|
|
27
|
+
* selector. `lo > hi` denotes a window that wraps past 1.0 (reds). `ALL` uses
|
|
28
|
+
* `useRange = 0` and ignores the window. Mirrors the legacy CPU table.
|
|
29
|
+
*/
|
|
30
|
+
const HUE_RANGES = {
|
|
31
|
+
ALL: [0, 1],
|
|
32
|
+
REDS: [0.95, 0.05],
|
|
33
|
+
ORANGES: [0.02, 0.1],
|
|
34
|
+
YELLOWS: [0.1, 0.18],
|
|
35
|
+
GREENS: [0.18, 0.45],
|
|
36
|
+
CYANS: [0.45, 0.55],
|
|
37
|
+
BLUES: [0.55, 0.72],
|
|
38
|
+
PURPLES: [0.72, 0.83],
|
|
39
|
+
MAGENTAS: [0.83, 0.95]
|
|
40
|
+
};
|
|
41
|
+
function createColorGradingNode(desc) {
|
|
42
|
+
const C = class extends BaseNode {
|
|
43
|
+
static nodeType = desc.nodeType;
|
|
44
|
+
static title = desc.title;
|
|
45
|
+
static description = desc.description;
|
|
46
|
+
static inlineFields = desc.inlineFields;
|
|
47
|
+
static inputFields = desc.inputFields;
|
|
48
|
+
static metadataOutputTypes = desc.outputs;
|
|
49
|
+
async process(context) {
|
|
50
|
+
const t = desc.nodeType;
|
|
51
|
+
const props = this.serialize();
|
|
52
|
+
const baseObj = pickImage(props, props);
|
|
53
|
+
// Emit raw-RGBA (`runShaderNode`) instead of re-encoding to PNG at every
|
|
54
|
+
// node. Chained shader nodes read it via `decodeRgba`'s raw passthrough,
|
|
55
|
+
// so the pipeline stays in raw pixels — the PNG encode happens once, at
|
|
56
|
+
// the display/save boundary, not on every hop (the round-trip that made a
|
|
57
|
+
// Curves→BrightnessContrast drag slow). `runShaderNode` no-ops to an empty
|
|
58
|
+
// image when the source is missing, so no explicit empty guard is needed.
|
|
59
|
+
const emit = (output) => ({ output });
|
|
60
|
+
if (t.endsWith(".ColorBalance")) {
|
|
61
|
+
return emit(await runShaderNode(colorColorBalanceV1, { temperature: num(props.temperature, 0), tint: num(props.tint, 0) }, baseObj, {}, context));
|
|
62
|
+
}
|
|
63
|
+
// The full tonal path (exposure + contrast + highlights/shadows/whites/
|
|
64
|
+
// blacks) runs in one shader pass; with every tonal knob at 0 it
|
|
65
|
+
// collapses to a pure `rgb * 2^exposure`.
|
|
66
|
+
if (t.endsWith(".Exposure")) {
|
|
67
|
+
return emit(await runShaderNode(colorExposureToneV1, {
|
|
68
|
+
exposure: num(props.exposure, 0),
|
|
69
|
+
contrast: num(props.contrast, 0),
|
|
70
|
+
highlights: num(props.highlights, 0),
|
|
71
|
+
shadows: num(props.shadows, 0),
|
|
72
|
+
whites: num(props.whites, 0),
|
|
73
|
+
blacks: num(props.blacks, 0)
|
|
74
|
+
}, baseObj, {}, context));
|
|
75
|
+
}
|
|
76
|
+
// Vibrance is folded into saturation as a milder secondary boost (half
|
|
77
|
+
// weight) — the published HSB shader has no separate skin-tone-protected
|
|
78
|
+
// channel. Clamp the combined multiplier at 0 so extreme negatives (e.g.
|
|
79
|
+
// saturation=-1, vibrance=-1) bottom out at grayscale instead of
|
|
80
|
+
// inverting past it.
|
|
81
|
+
if (t.endsWith(".SaturationVibrance")) {
|
|
82
|
+
const saturation = num(props.saturation, 0);
|
|
83
|
+
const vibrance = num(props.vibrance, 0);
|
|
84
|
+
return emit(await runShaderNode(colorHsbV1, {
|
|
85
|
+
hue: 0,
|
|
86
|
+
saturation: Math.max(0, 1 + saturation + vibrance * 0.5),
|
|
87
|
+
brightness: 1
|
|
88
|
+
}, baseObj, {}, context));
|
|
89
|
+
}
|
|
90
|
+
if (t.endsWith(".LiftGammaGain")) {
|
|
91
|
+
return emit(await runShaderNode(colorLiftGammaGainV1, {
|
|
92
|
+
liftR: num(props.lift_r, 0),
|
|
93
|
+
liftG: num(props.lift_g, 0),
|
|
94
|
+
liftB: num(props.lift_b, 0),
|
|
95
|
+
liftMaster: num(props.lift_master, 0),
|
|
96
|
+
gammaR: num(props.gamma_r, 1),
|
|
97
|
+
gammaG: num(props.gamma_g, 1),
|
|
98
|
+
gammaB: num(props.gamma_b, 1),
|
|
99
|
+
gammaMaster: num(props.gamma_master, 1),
|
|
100
|
+
gainR: num(props.gain_r, 1),
|
|
101
|
+
gainG: num(props.gain_g, 1),
|
|
102
|
+
gainB: num(props.gain_b, 1),
|
|
103
|
+
gainMaster: num(props.gain_master, 1)
|
|
104
|
+
}, baseObj, {}, context));
|
|
105
|
+
}
|
|
106
|
+
if (t.endsWith(".CDL")) {
|
|
107
|
+
return emit(await runShaderNode(colorCdlV1, {
|
|
108
|
+
slopeR: num(props.slope_r, 1),
|
|
109
|
+
slopeG: num(props.slope_g, 1),
|
|
110
|
+
slopeB: num(props.slope_b, 1),
|
|
111
|
+
offsetR: num(props.offset_r, 0),
|
|
112
|
+
offsetG: num(props.offset_g, 0),
|
|
113
|
+
offsetB: num(props.offset_b, 0),
|
|
114
|
+
powerR: num(props.power_r, 1),
|
|
115
|
+
powerG: num(props.power_g, 1),
|
|
116
|
+
powerB: num(props.power_b, 1),
|
|
117
|
+
saturation: num(props.saturation, 1)
|
|
118
|
+
}, baseObj, {}, context));
|
|
119
|
+
}
|
|
120
|
+
if (t.endsWith(".Curves")) {
|
|
121
|
+
return emit(await runShaderNode(colorCurvesV1, {
|
|
122
|
+
blackPoint: num(props.black_point, 0),
|
|
123
|
+
whitePoint: num(props.white_point, 1),
|
|
124
|
+
shadows: num(props.shadows, 0),
|
|
125
|
+
midtones: num(props.midtones, 0),
|
|
126
|
+
highlights: num(props.highlights, 0),
|
|
127
|
+
redMidtones: num(props.red_midtones, 0),
|
|
128
|
+
greenMidtones: num(props.green_midtones, 0),
|
|
129
|
+
blueMidtones: num(props.blue_midtones, 0)
|
|
130
|
+
}, baseObj, {}, context));
|
|
131
|
+
}
|
|
132
|
+
// `color_range === "ALL"` applies to every pixel (useRange 0); the named
|
|
133
|
+
// ranges gate the adjustment by per-pixel hue proximity inside the shader.
|
|
134
|
+
if (t.endsWith(".HSLAdjust")) {
|
|
135
|
+
const colorRange = String(props.color_range ?? "all").toUpperCase();
|
|
136
|
+
const [lo, hi] = HUE_RANGES[colorRange] ?? HUE_RANGES.ALL;
|
|
137
|
+
return emit(await runShaderNode(colorHslAdjustV1, {
|
|
138
|
+
hueShift: num(props.hue_shift, 0),
|
|
139
|
+
satAdj: num(props.saturation, 0),
|
|
140
|
+
lumAdj: num(props.luminance, 0),
|
|
141
|
+
rangeLo: lo,
|
|
142
|
+
rangeHi: hi,
|
|
143
|
+
useRange: colorRange === "ALL" ? 0 : 1
|
|
144
|
+
}, baseObj, {}, context));
|
|
145
|
+
}
|
|
146
|
+
// Resolve the shadow/highlight hues to RGB tint colours on the host; the
|
|
147
|
+
// shader weights them toward shadows/highlights by a balance-shifted mask.
|
|
148
|
+
if (t.endsWith(".SplitToning")) {
|
|
149
|
+
const [sr, sg, sb] = hsvToRgb(num(props.shadow_hue, 200) / 360, 1, 1);
|
|
150
|
+
const [hr, hg, hb] = hsvToRgb(num(props.highlight_hue, 40) / 360, 1, 1);
|
|
151
|
+
return emit(await runShaderNode(colorSplitToningV1, {
|
|
152
|
+
shadowColor: d.vec3f(sr, sg, sb),
|
|
153
|
+
shadowSat: num(props.shadow_saturation, 0.3),
|
|
154
|
+
highlightColor: d.vec3f(hr, hg, hb),
|
|
155
|
+
highlightSat: num(props.highlight_saturation, 0.3),
|
|
156
|
+
balance: num(props.balance, 0)
|
|
157
|
+
}, baseObj, {}, context));
|
|
158
|
+
}
|
|
159
|
+
if (t.endsWith(".FilmLook")) {
|
|
160
|
+
const preset = String(props.preset ?? "teal_orange").toUpperCase();
|
|
161
|
+
const p = FILM_PRESETS[preset] ?? FILM_PRESETS.TEAL_ORANGE;
|
|
162
|
+
return emit(await runShaderNode(colorFilmLookV1, {
|
|
163
|
+
shadow: d.vec3f(p.shadow[0], p.shadow[1], p.shadow[2]),
|
|
164
|
+
highlight: d.vec3f(p.highlight[0], p.highlight[1], p.highlight[2]),
|
|
165
|
+
contrast: p.contrast,
|
|
166
|
+
saturation: p.saturation,
|
|
167
|
+
fade: p.fade,
|
|
168
|
+
intensity: num(props.intensity, 1)
|
|
169
|
+
}, baseObj, {}, context));
|
|
170
|
+
}
|
|
171
|
+
// Shader `intensity` maps to the legacy `amount`; midpoint/feather map
|
|
172
|
+
// onto the shader's `radius` (where the vignette begins) and `softness`.
|
|
173
|
+
// The shader darkens where `dist > radius - softness`, so `radius` grows
|
|
174
|
+
// with `midpoint`: midpoint=0 starts the vignette at the center,
|
|
175
|
+
// midpoint=1 pushes its onset out to the edges.
|
|
176
|
+
if (t.endsWith(".Vignette")) {
|
|
177
|
+
const midpoint = num(props.midpoint, 0.5);
|
|
178
|
+
const feather = Math.max(0.01, num(props.feather, 0.5));
|
|
179
|
+
return emit(await runShaderNode(vignetteV1, {
|
|
180
|
+
intensity: num(props.amount, 0.5),
|
|
181
|
+
radius: midpoint,
|
|
182
|
+
softness: feather
|
|
183
|
+
}, baseObj, {}, context));
|
|
184
|
+
}
|
|
185
|
+
// Unknown grade type — pass the source through unchanged.
|
|
186
|
+
return { output: baseObj ?? {} };
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
for (const property of desc.properties) {
|
|
190
|
+
registerDeclaredProperty(C, property.name, property.options);
|
|
191
|
+
}
|
|
192
|
+
return C;
|
|
193
|
+
}
|
|
194
|
+
const DESCRIPTORS = [
|
|
195
|
+
{
|
|
196
|
+
nodeType: "lib.image.color_grading.CDL",
|
|
197
|
+
title: "CDL",
|
|
198
|
+
description: "ASC CDL (Color Decision List) color correction.\n cdl, slope, offset, power, saturation, asc, color decision list\n\n Use cases:\n - Apply industry-standard CDL color correction\n - Exchange color grades between different software\n - Apply precise mathematical color transformations\n - Create consistent looks across multiple shots\n\n Formula: output = (input * slope + offset) ^ power\n Followed by saturation adjustment.",
|
|
199
|
+
inlineFields: [],
|
|
200
|
+
inputFields: ["image"],
|
|
201
|
+
outputs: {
|
|
202
|
+
output: "image"
|
|
203
|
+
},
|
|
204
|
+
properties: [
|
|
205
|
+
{
|
|
206
|
+
name: "image",
|
|
207
|
+
options: {
|
|
208
|
+
type: "image",
|
|
209
|
+
default: {
|
|
210
|
+
type: "image",
|
|
211
|
+
uri: "",
|
|
212
|
+
asset_id: null,
|
|
213
|
+
data: null,
|
|
214
|
+
metadata: null
|
|
215
|
+
},
|
|
216
|
+
title: "Image",
|
|
217
|
+
description: "The image to color correct."
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "slope_r",
|
|
222
|
+
options: {
|
|
223
|
+
type: "float",
|
|
224
|
+
default: 1,
|
|
225
|
+
title: "Slope R",
|
|
226
|
+
description: "Red slope (multiplier).",
|
|
227
|
+
min: 0,
|
|
228
|
+
max: 4
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
name: "slope_g",
|
|
233
|
+
options: {
|
|
234
|
+
type: "float",
|
|
235
|
+
default: 1,
|
|
236
|
+
title: "Slope G",
|
|
237
|
+
description: "Green slope (multiplier).",
|
|
238
|
+
min: 0,
|
|
239
|
+
max: 4
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "slope_b",
|
|
244
|
+
options: {
|
|
245
|
+
type: "float",
|
|
246
|
+
default: 1,
|
|
247
|
+
title: "Slope B",
|
|
248
|
+
description: "Blue slope (multiplier).",
|
|
249
|
+
min: 0,
|
|
250
|
+
max: 4
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: "offset_r",
|
|
255
|
+
options: {
|
|
256
|
+
type: "float",
|
|
257
|
+
default: 0,
|
|
258
|
+
title: "Offset R",
|
|
259
|
+
description: "Red offset (addition).",
|
|
260
|
+
min: -1,
|
|
261
|
+
max: 1
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "offset_g",
|
|
266
|
+
options: {
|
|
267
|
+
type: "float",
|
|
268
|
+
default: 0,
|
|
269
|
+
title: "Offset G",
|
|
270
|
+
description: "Green offset (addition).",
|
|
271
|
+
min: -1,
|
|
272
|
+
max: 1
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: "offset_b",
|
|
277
|
+
options: {
|
|
278
|
+
type: "float",
|
|
279
|
+
default: 0,
|
|
280
|
+
title: "Offset B",
|
|
281
|
+
description: "Blue offset (addition).",
|
|
282
|
+
min: -1,
|
|
283
|
+
max: 1
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "power_r",
|
|
288
|
+
options: {
|
|
289
|
+
type: "float",
|
|
290
|
+
default: 1,
|
|
291
|
+
title: "Power R",
|
|
292
|
+
description: "Red power (gamma).",
|
|
293
|
+
min: 0.1,
|
|
294
|
+
max: 4
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "power_g",
|
|
299
|
+
options: {
|
|
300
|
+
type: "float",
|
|
301
|
+
default: 1,
|
|
302
|
+
title: "Power G",
|
|
303
|
+
description: "Green power (gamma).",
|
|
304
|
+
min: 0.1,
|
|
305
|
+
max: 4
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: "power_b",
|
|
310
|
+
options: {
|
|
311
|
+
type: "float",
|
|
312
|
+
default: 1,
|
|
313
|
+
title: "Power B",
|
|
314
|
+
description: "Blue power (gamma).",
|
|
315
|
+
min: 0.1,
|
|
316
|
+
max: 4
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: "saturation",
|
|
321
|
+
options: {
|
|
322
|
+
type: "float",
|
|
323
|
+
default: 1,
|
|
324
|
+
title: "Saturation",
|
|
325
|
+
description: "Saturation adjustment.",
|
|
326
|
+
min: 0,
|
|
327
|
+
max: 4
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
nodeType: "lib.image.color_grading.ColorBalance",
|
|
334
|
+
title: "Color Balance",
|
|
335
|
+
description: "Adjust color temperature and tint for white balance correction.\n white balance, temperature, tint, color balance, warm, cool\n\n Use cases:\n - Correct white balance in photos and video\n - Warm up or cool down the overall image\n - Fix color casts from mixed lighting\n - Create mood through color temperature shifts",
|
|
336
|
+
inlineFields: [],
|
|
337
|
+
inputFields: ["image"],
|
|
338
|
+
outputs: {
|
|
339
|
+
output: "image"
|
|
340
|
+
},
|
|
341
|
+
properties: [
|
|
342
|
+
{
|
|
343
|
+
name: "image",
|
|
344
|
+
options: {
|
|
345
|
+
type: "image",
|
|
346
|
+
default: {
|
|
347
|
+
type: "image",
|
|
348
|
+
uri: "",
|
|
349
|
+
asset_id: null,
|
|
350
|
+
data: null,
|
|
351
|
+
metadata: null
|
|
352
|
+
},
|
|
353
|
+
title: "Image",
|
|
354
|
+
description: "The image to adjust."
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "temperature",
|
|
359
|
+
options: {
|
|
360
|
+
type: "float",
|
|
361
|
+
default: 0,
|
|
362
|
+
title: "Temperature",
|
|
363
|
+
description: "Color temperature. Positive = warmer (orange), negative = cooler (blue).",
|
|
364
|
+
min: -1,
|
|
365
|
+
max: 1
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: "tint",
|
|
370
|
+
options: {
|
|
371
|
+
type: "float",
|
|
372
|
+
default: 0,
|
|
373
|
+
title: "Tint",
|
|
374
|
+
description: "Color tint. Positive = magenta, negative = green.",
|
|
375
|
+
min: -1,
|
|
376
|
+
max: 1
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
nodeType: "lib.image.color_grading.Curves",
|
|
383
|
+
title: "Curves",
|
|
384
|
+
description: "RGB curves adjustment with control points for precise tonal control.\n curves, rgb, tonal, contrast, levels\n\n Use cases:\n - Create custom contrast curves\n - Adjust specific tonal ranges precisely\n - Create cross-processed or stylized looks\n - Match the tonal characteristics of film stocks",
|
|
385
|
+
inlineFields: [],
|
|
386
|
+
inputFields: ["image"],
|
|
387
|
+
outputs: {
|
|
388
|
+
output: "image"
|
|
389
|
+
},
|
|
390
|
+
properties: [
|
|
391
|
+
{
|
|
392
|
+
name: "image",
|
|
393
|
+
options: {
|
|
394
|
+
type: "image",
|
|
395
|
+
default: {
|
|
396
|
+
type: "image",
|
|
397
|
+
uri: "",
|
|
398
|
+
asset_id: null,
|
|
399
|
+
data: null,
|
|
400
|
+
metadata: null
|
|
401
|
+
},
|
|
402
|
+
title: "Image",
|
|
403
|
+
description: "The image to adjust."
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: "black_point",
|
|
408
|
+
options: {
|
|
409
|
+
type: "float",
|
|
410
|
+
default: 0,
|
|
411
|
+
title: "Black Point",
|
|
412
|
+
description: "Black point (input level that maps to 0).",
|
|
413
|
+
min: 0,
|
|
414
|
+
max: 0.5
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "white_point",
|
|
419
|
+
options: {
|
|
420
|
+
type: "float",
|
|
421
|
+
default: 1,
|
|
422
|
+
title: "White Point",
|
|
423
|
+
description: "White point (input level that maps to 1).",
|
|
424
|
+
min: 0.5,
|
|
425
|
+
max: 1
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: "shadows",
|
|
430
|
+
options: {
|
|
431
|
+
type: "float",
|
|
432
|
+
default: 0,
|
|
433
|
+
title: "Shadows",
|
|
434
|
+
description: "Shadow curve adjustment.",
|
|
435
|
+
min: -0.5,
|
|
436
|
+
max: 0.5
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
name: "midtones",
|
|
441
|
+
options: {
|
|
442
|
+
type: "float",
|
|
443
|
+
default: 0,
|
|
444
|
+
title: "Midtones",
|
|
445
|
+
description: "Midtone gamma adjustment.",
|
|
446
|
+
min: -0.5,
|
|
447
|
+
max: 0.5
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: "highlights",
|
|
452
|
+
options: {
|
|
453
|
+
type: "float",
|
|
454
|
+
default: 0,
|
|
455
|
+
title: "Highlights",
|
|
456
|
+
description: "Highlight curve adjustment.",
|
|
457
|
+
min: -0.5,
|
|
458
|
+
max: 0.5
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: "red_midtones",
|
|
463
|
+
options: {
|
|
464
|
+
type: "float",
|
|
465
|
+
default: 0,
|
|
466
|
+
title: "Red Midtones",
|
|
467
|
+
description: "Red channel midtone adjustment.",
|
|
468
|
+
min: -0.5,
|
|
469
|
+
max: 0.5
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: "green_midtones",
|
|
474
|
+
options: {
|
|
475
|
+
type: "float",
|
|
476
|
+
default: 0,
|
|
477
|
+
title: "Green Midtones",
|
|
478
|
+
description: "Green channel midtone adjustment.",
|
|
479
|
+
min: -0.5,
|
|
480
|
+
max: 0.5
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: "blue_midtones",
|
|
485
|
+
options: {
|
|
486
|
+
type: "float",
|
|
487
|
+
default: 0,
|
|
488
|
+
title: "Blue Midtones",
|
|
489
|
+
description: "Blue channel midtone adjustment.",
|
|
490
|
+
min: -0.5,
|
|
491
|
+
max: 0.5
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
]
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
nodeType: "lib.image.color_grading.Exposure",
|
|
498
|
+
title: "Exposure",
|
|
499
|
+
description: "Comprehensive tonal exposure controls similar to Lightroom/Camera Raw.\n exposure, contrast, highlights, shadows, whites, blacks, tonal\n\n Use cases:\n - Correct over/underexposed images\n - Recover highlight and shadow detail\n - Adjust overall contrast and tonal range\n - Fine-tune the brightness of specific tonal regions",
|
|
500
|
+
inlineFields: [],
|
|
501
|
+
inputFields: ["image"],
|
|
502
|
+
outputs: {
|
|
503
|
+
output: "image"
|
|
504
|
+
},
|
|
505
|
+
properties: [
|
|
506
|
+
{
|
|
507
|
+
name: "image",
|
|
508
|
+
options: {
|
|
509
|
+
type: "image",
|
|
510
|
+
default: {
|
|
511
|
+
type: "image",
|
|
512
|
+
uri: "",
|
|
513
|
+
asset_id: null,
|
|
514
|
+
data: null,
|
|
515
|
+
metadata: null
|
|
516
|
+
},
|
|
517
|
+
title: "Image",
|
|
518
|
+
description: "The image to adjust."
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: "exposure",
|
|
523
|
+
options: {
|
|
524
|
+
type: "float",
|
|
525
|
+
default: 0,
|
|
526
|
+
title: "Exposure",
|
|
527
|
+
description: "Exposure in stops. 1 = double brightness, -1 = half brightness.",
|
|
528
|
+
min: -5,
|
|
529
|
+
max: 5
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: "contrast",
|
|
534
|
+
options: {
|
|
535
|
+
type: "float",
|
|
536
|
+
default: 0,
|
|
537
|
+
title: "Contrast",
|
|
538
|
+
description: "Contrast adjustment. Positive = more contrast, negative = less.",
|
|
539
|
+
min: -1,
|
|
540
|
+
max: 1
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
name: "highlights",
|
|
545
|
+
options: {
|
|
546
|
+
type: "float",
|
|
547
|
+
default: 0,
|
|
548
|
+
title: "Highlights",
|
|
549
|
+
description: "Highlight recovery/boost. Affects brightest areas.",
|
|
550
|
+
min: -1,
|
|
551
|
+
max: 1
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: "shadows",
|
|
556
|
+
options: {
|
|
557
|
+
type: "float",
|
|
558
|
+
default: 0,
|
|
559
|
+
title: "Shadows",
|
|
560
|
+
description: "Shadow recovery/darken. Affects darkest areas.",
|
|
561
|
+
min: -1,
|
|
562
|
+
max: 1
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: "whites",
|
|
567
|
+
options: {
|
|
568
|
+
type: "float",
|
|
569
|
+
default: 0,
|
|
570
|
+
title: "Whites",
|
|
571
|
+
description: "White point adjustment. Sets the brightest white.",
|
|
572
|
+
min: -1,
|
|
573
|
+
max: 1
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: "blacks",
|
|
578
|
+
options: {
|
|
579
|
+
type: "float",
|
|
580
|
+
default: 0,
|
|
581
|
+
title: "Blacks",
|
|
582
|
+
description: "Black point adjustment. Sets the darkest black.",
|
|
583
|
+
min: -1,
|
|
584
|
+
max: 1
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
nodeType: "lib.image.color_grading.FilmLook",
|
|
591
|
+
title: "Film Look",
|
|
592
|
+
description: "Apply preset cinematic film looks with adjustable intensity.\n film look, cinematic, preset, movie, lut, color grade\n\n Use cases:\n - Quickly apply popular cinematic color grades\n - Create consistent looks across multiple images\n - Emulate classic film stock characteristics\n - Starting point for custom color grading",
|
|
593
|
+
inlineFields: [],
|
|
594
|
+
inputFields: ["image"],
|
|
595
|
+
outputs: {
|
|
596
|
+
output: "image"
|
|
597
|
+
},
|
|
598
|
+
properties: [
|
|
599
|
+
{
|
|
600
|
+
name: "image",
|
|
601
|
+
options: {
|
|
602
|
+
type: "image",
|
|
603
|
+
default: {
|
|
604
|
+
type: "image",
|
|
605
|
+
uri: "",
|
|
606
|
+
asset_id: null,
|
|
607
|
+
data: null,
|
|
608
|
+
metadata: null
|
|
609
|
+
},
|
|
610
|
+
title: "Image",
|
|
611
|
+
description: "The image to apply the film look to."
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
name: "preset",
|
|
616
|
+
options: {
|
|
617
|
+
type: "enum",
|
|
618
|
+
default: "teal_orange",
|
|
619
|
+
title: "Preset",
|
|
620
|
+
description: "The cinematic look to apply.",
|
|
621
|
+
values: [
|
|
622
|
+
"teal_orange",
|
|
623
|
+
"blockbuster",
|
|
624
|
+
"noir",
|
|
625
|
+
"vintage",
|
|
626
|
+
"cold_blue",
|
|
627
|
+
"warm_sunset",
|
|
628
|
+
"matrix",
|
|
629
|
+
"bleach_bypass",
|
|
630
|
+
"cross_process",
|
|
631
|
+
"faded_film"
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
name: "intensity",
|
|
637
|
+
options: {
|
|
638
|
+
type: "float",
|
|
639
|
+
default: 1,
|
|
640
|
+
title: "Intensity",
|
|
641
|
+
description: "Intensity of the effect. 0=none, 1=full, 2=exaggerated.",
|
|
642
|
+
min: 0,
|
|
643
|
+
max: 2
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
nodeType: "lib.image.color_grading.HSLAdjust",
|
|
650
|
+
title: "HSLAdjust",
|
|
651
|
+
description: "Adjust hue, saturation, and luminance for specific color ranges.\n hsl, hue, saturation, luminance, selective color, color range\n\n Use cases:\n - Shift specific colors (e.g., make blues more cyan)\n - Desaturate or boost individual color ranges\n - Brighten or darken specific colors\n - Create color-specific looks (teal skies, orange skin)",
|
|
652
|
+
inlineFields: [],
|
|
653
|
+
inputFields: ["image"],
|
|
654
|
+
outputs: {
|
|
655
|
+
output: "image"
|
|
656
|
+
},
|
|
657
|
+
properties: [
|
|
658
|
+
{
|
|
659
|
+
name: "image",
|
|
660
|
+
options: {
|
|
661
|
+
type: "image",
|
|
662
|
+
default: {
|
|
663
|
+
type: "image",
|
|
664
|
+
uri: "",
|
|
665
|
+
asset_id: null,
|
|
666
|
+
data: null,
|
|
667
|
+
metadata: null
|
|
668
|
+
},
|
|
669
|
+
title: "Image",
|
|
670
|
+
description: "The image to adjust."
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
name: "color_range",
|
|
675
|
+
options: {
|
|
676
|
+
type: "enum",
|
|
677
|
+
default: "all",
|
|
678
|
+
title: "Color Range",
|
|
679
|
+
description: "The color range to adjust.",
|
|
680
|
+
values: [
|
|
681
|
+
"all",
|
|
682
|
+
"reds",
|
|
683
|
+
"oranges",
|
|
684
|
+
"yellows",
|
|
685
|
+
"greens",
|
|
686
|
+
"cyans",
|
|
687
|
+
"blues",
|
|
688
|
+
"purples",
|
|
689
|
+
"magentas"
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
name: "hue_shift",
|
|
695
|
+
options: {
|
|
696
|
+
type: "float",
|
|
697
|
+
default: 0,
|
|
698
|
+
title: "Hue Shift",
|
|
699
|
+
description: "Hue shift for the selected color range. -1 to 1 = -180 to +180 degrees.",
|
|
700
|
+
min: -1,
|
|
701
|
+
max: 1
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
name: "saturation",
|
|
706
|
+
options: {
|
|
707
|
+
type: "float",
|
|
708
|
+
default: 0,
|
|
709
|
+
title: "Saturation",
|
|
710
|
+
description: "Saturation adjustment for the selected color range.",
|
|
711
|
+
min: -1,
|
|
712
|
+
max: 1
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
name: "luminance",
|
|
717
|
+
options: {
|
|
718
|
+
type: "float",
|
|
719
|
+
default: 0,
|
|
720
|
+
title: "Luminance",
|
|
721
|
+
description: "Luminance adjustment for the selected color range.",
|
|
722
|
+
min: -1,
|
|
723
|
+
max: 1
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
nodeType: "lib.image.color_grading.LiftGammaGain",
|
|
730
|
+
title: "Lift Gamma Gain",
|
|
731
|
+
description: "Three-way color corrector for shadows, midtones, and highlights.\n lift, gamma, gain, color wheels, primary correction, shadows, midtones, highlights\n\n Use cases:\n - Apply the industry-standard three-way color correction\n - Balance colors across different tonal ranges\n - Create color contrast between shadows and highlights\n - Match footage from different sources\n\n Lift affects shadows, Gamma affects midtones, Gain affects highlights.\n Each control adjusts both luminance and color for its tonal range.",
|
|
732
|
+
inlineFields: [],
|
|
733
|
+
inputFields: ["image"],
|
|
734
|
+
outputs: {
|
|
735
|
+
output: "image"
|
|
736
|
+
},
|
|
737
|
+
properties: [
|
|
738
|
+
{
|
|
739
|
+
name: "image",
|
|
740
|
+
options: {
|
|
741
|
+
type: "image",
|
|
742
|
+
default: {
|
|
743
|
+
type: "image",
|
|
744
|
+
uri: "",
|
|
745
|
+
asset_id: null,
|
|
746
|
+
data: null,
|
|
747
|
+
metadata: null
|
|
748
|
+
},
|
|
749
|
+
title: "Image",
|
|
750
|
+
description: "The image to color correct."
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
name: "lift_r",
|
|
755
|
+
options: {
|
|
756
|
+
type: "float",
|
|
757
|
+
default: 0,
|
|
758
|
+
title: "Lift R",
|
|
759
|
+
description: "Red lift (shadow color shift).",
|
|
760
|
+
min: -1,
|
|
761
|
+
max: 1
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
name: "lift_g",
|
|
766
|
+
options: {
|
|
767
|
+
type: "float",
|
|
768
|
+
default: 0,
|
|
769
|
+
title: "Lift G",
|
|
770
|
+
description: "Green lift (shadow color shift).",
|
|
771
|
+
min: -1,
|
|
772
|
+
max: 1
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
name: "lift_b",
|
|
777
|
+
options: {
|
|
778
|
+
type: "float",
|
|
779
|
+
default: 0,
|
|
780
|
+
title: "Lift B",
|
|
781
|
+
description: "Blue lift (shadow color shift).",
|
|
782
|
+
min: -1,
|
|
783
|
+
max: 1
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
name: "lift_master",
|
|
788
|
+
options: {
|
|
789
|
+
type: "float",
|
|
790
|
+
default: 0,
|
|
791
|
+
title: "Lift Master",
|
|
792
|
+
description: "Master lift (shadow brightness).",
|
|
793
|
+
min: -1,
|
|
794
|
+
max: 1
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
name: "gamma_r",
|
|
799
|
+
options: {
|
|
800
|
+
type: "float",
|
|
801
|
+
default: 1,
|
|
802
|
+
title: "Gamma R",
|
|
803
|
+
description: "Red gamma (midtone adjustment).",
|
|
804
|
+
min: 0.1,
|
|
805
|
+
max: 4
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
name: "gamma_g",
|
|
810
|
+
options: {
|
|
811
|
+
type: "float",
|
|
812
|
+
default: 1,
|
|
813
|
+
title: "Gamma G",
|
|
814
|
+
description: "Green gamma (midtone adjustment).",
|
|
815
|
+
min: 0.1,
|
|
816
|
+
max: 4
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
name: "gamma_b",
|
|
821
|
+
options: {
|
|
822
|
+
type: "float",
|
|
823
|
+
default: 1,
|
|
824
|
+
title: "Gamma B",
|
|
825
|
+
description: "Blue gamma (midtone adjustment).",
|
|
826
|
+
min: 0.1,
|
|
827
|
+
max: 4
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
name: "gamma_master",
|
|
832
|
+
options: {
|
|
833
|
+
type: "float",
|
|
834
|
+
default: 1,
|
|
835
|
+
title: "Gamma Master",
|
|
836
|
+
description: "Master gamma (overall midtones).",
|
|
837
|
+
min: 0.1,
|
|
838
|
+
max: 4
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
name: "gain_r",
|
|
843
|
+
options: {
|
|
844
|
+
type: "float",
|
|
845
|
+
default: 1,
|
|
846
|
+
title: "Gain R",
|
|
847
|
+
description: "Red gain (highlight multiplier).",
|
|
848
|
+
min: 0,
|
|
849
|
+
max: 4
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "gain_g",
|
|
854
|
+
options: {
|
|
855
|
+
type: "float",
|
|
856
|
+
default: 1,
|
|
857
|
+
title: "Gain G",
|
|
858
|
+
description: "Green gain (highlight multiplier).",
|
|
859
|
+
min: 0,
|
|
860
|
+
max: 4
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
name: "gain_b",
|
|
865
|
+
options: {
|
|
866
|
+
type: "float",
|
|
867
|
+
default: 1,
|
|
868
|
+
title: "Gain B",
|
|
869
|
+
description: "Blue gain (highlight multiplier).",
|
|
870
|
+
min: 0,
|
|
871
|
+
max: 4
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
name: "gain_master",
|
|
876
|
+
options: {
|
|
877
|
+
type: "float",
|
|
878
|
+
default: 1,
|
|
879
|
+
title: "Gain Master",
|
|
880
|
+
description: "Master gain (overall brightness).",
|
|
881
|
+
min: 0,
|
|
882
|
+
max: 4
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
nodeType: "lib.image.color_grading.SaturationVibrance",
|
|
889
|
+
title: "Saturation Vibrance",
|
|
890
|
+
description: "Adjust color saturation with a milder secondary vibrance control.\n saturation, vibrance, color intensity\n\n Use cases:\n - Boost or reduce overall color intensity\n - Apply a gentler saturation nudge via vibrance\n - Create desaturated or oversaturated looks\n - Fine-tune color intensity with two strengths\n\n Vibrance is a half-weight secondary saturation control; it does not\n protect skin tones or already-saturated colors.",
|
|
891
|
+
inlineFields: [],
|
|
892
|
+
inputFields: ["image"],
|
|
893
|
+
outputs: {
|
|
894
|
+
output: "image"
|
|
895
|
+
},
|
|
896
|
+
properties: [
|
|
897
|
+
{
|
|
898
|
+
name: "image",
|
|
899
|
+
options: {
|
|
900
|
+
type: "image",
|
|
901
|
+
default: {
|
|
902
|
+
type: "image",
|
|
903
|
+
uri: "",
|
|
904
|
+
asset_id: null,
|
|
905
|
+
data: null,
|
|
906
|
+
metadata: null
|
|
907
|
+
},
|
|
908
|
+
title: "Image",
|
|
909
|
+
description: "The image to adjust."
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
name: "saturation",
|
|
914
|
+
options: {
|
|
915
|
+
type: "float",
|
|
916
|
+
default: 0,
|
|
917
|
+
title: "Saturation",
|
|
918
|
+
description: "Global saturation. 0 = no change, -1 = grayscale, 1 = 2x saturation.",
|
|
919
|
+
min: -1,
|
|
920
|
+
max: 1
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
name: "vibrance",
|
|
925
|
+
options: {
|
|
926
|
+
type: "float",
|
|
927
|
+
default: 0,
|
|
928
|
+
title: "Vibrance",
|
|
929
|
+
description: "Secondary saturation control applied at half the strength of Saturation. Milder than Saturation; does not protect skin tones.",
|
|
930
|
+
min: -1,
|
|
931
|
+
max: 1
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
]
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
nodeType: "lib.image.color_grading.SplitToning",
|
|
938
|
+
title: "Split Toning",
|
|
939
|
+
description: "Apply different color tints to shadows and highlights.\n split toning, shadows, highlights, tint, duotone\n\n Use cases:\n - Create classic teal and orange looks\n - Add color contrast between shadows and highlights\n - Emulate film processing techniques\n - Create stylized color-graded images",
|
|
940
|
+
inlineFields: [],
|
|
941
|
+
inputFields: ["image"],
|
|
942
|
+
outputs: {
|
|
943
|
+
output: "image"
|
|
944
|
+
},
|
|
945
|
+
properties: [
|
|
946
|
+
{
|
|
947
|
+
name: "image",
|
|
948
|
+
options: {
|
|
949
|
+
type: "image",
|
|
950
|
+
default: {
|
|
951
|
+
type: "image",
|
|
952
|
+
uri: "",
|
|
953
|
+
asset_id: null,
|
|
954
|
+
data: null,
|
|
955
|
+
metadata: null
|
|
956
|
+
},
|
|
957
|
+
title: "Image",
|
|
958
|
+
description: "The image to apply split toning to."
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
name: "shadow_hue",
|
|
963
|
+
options: {
|
|
964
|
+
type: "float",
|
|
965
|
+
default: 200,
|
|
966
|
+
title: "Shadow Hue",
|
|
967
|
+
description: "Hue of shadow tint in degrees (0=red, 120=green, 240=blue).",
|
|
968
|
+
min: 0,
|
|
969
|
+
max: 360
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
name: "shadow_saturation",
|
|
974
|
+
options: {
|
|
975
|
+
type: "float",
|
|
976
|
+
default: 0.3,
|
|
977
|
+
title: "Shadow Saturation",
|
|
978
|
+
description: "Saturation of shadow tint.",
|
|
979
|
+
min: 0,
|
|
980
|
+
max: 1
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
name: "highlight_hue",
|
|
985
|
+
options: {
|
|
986
|
+
type: "float",
|
|
987
|
+
default: 40,
|
|
988
|
+
title: "Highlight Hue",
|
|
989
|
+
description: "Hue of highlight tint in degrees.",
|
|
990
|
+
min: 0,
|
|
991
|
+
max: 360
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
name: "highlight_saturation",
|
|
996
|
+
options: {
|
|
997
|
+
type: "float",
|
|
998
|
+
default: 0.3,
|
|
999
|
+
title: "Highlight Saturation",
|
|
1000
|
+
description: "Saturation of highlight tint.",
|
|
1001
|
+
min: 0,
|
|
1002
|
+
max: 1
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
name: "balance",
|
|
1007
|
+
options: {
|
|
1008
|
+
type: "float",
|
|
1009
|
+
default: 0,
|
|
1010
|
+
title: "Balance",
|
|
1011
|
+
description: "Balance between shadows (-1) and highlights (+1).",
|
|
1012
|
+
min: -1,
|
|
1013
|
+
max: 1
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
]
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
nodeType: "lib.image.color_grading.Vignette",
|
|
1020
|
+
title: "Vignette",
|
|
1021
|
+
description: "Apply cinematic vignette effect to darken or lighten image edges.\n vignette, edge, darken, focus, cinematic\n\n Use cases:\n - Draw attention to the center of the image\n - Create a classic cinematic look\n - Simulate lens light falloff\n - Add subtle framing to photos",
|
|
1022
|
+
inlineFields: [],
|
|
1023
|
+
inputFields: ["image"],
|
|
1024
|
+
outputs: {
|
|
1025
|
+
output: "image"
|
|
1026
|
+
},
|
|
1027
|
+
properties: [
|
|
1028
|
+
{
|
|
1029
|
+
name: "image",
|
|
1030
|
+
options: {
|
|
1031
|
+
type: "image",
|
|
1032
|
+
default: {
|
|
1033
|
+
type: "image",
|
|
1034
|
+
uri: "",
|
|
1035
|
+
asset_id: null,
|
|
1036
|
+
data: null,
|
|
1037
|
+
metadata: null
|
|
1038
|
+
},
|
|
1039
|
+
title: "Image",
|
|
1040
|
+
description: "The image to apply vignette to."
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
name: "amount",
|
|
1045
|
+
options: {
|
|
1046
|
+
type: "float",
|
|
1047
|
+
default: 0.5,
|
|
1048
|
+
title: "Amount",
|
|
1049
|
+
description: "Vignette amount. Positive darkens edges, negative lightens.",
|
|
1050
|
+
min: -1,
|
|
1051
|
+
max: 1
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
name: "midpoint",
|
|
1056
|
+
options: {
|
|
1057
|
+
type: "float",
|
|
1058
|
+
default: 0.5,
|
|
1059
|
+
title: "Midpoint",
|
|
1060
|
+
description: "Distance from center where vignette begins (0=center, 1=edges).",
|
|
1061
|
+
min: 0,
|
|
1062
|
+
max: 1
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
name: "feather",
|
|
1067
|
+
options: {
|
|
1068
|
+
type: "float",
|
|
1069
|
+
default: 0.5,
|
|
1070
|
+
title: "Feather",
|
|
1071
|
+
description: "Softness of the vignette edge.",
|
|
1072
|
+
min: 0,
|
|
1073
|
+
max: 1
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
]
|
|
1077
|
+
}
|
|
1078
|
+
];
|
|
1079
|
+
export const LIB_IMAGE_COLOR_GRADING_NODES = tagAsBrowserGpu(tagAsContentCard(DESCRIPTORS.map(createColorGradingNode)));
|
|
1080
|
+
//# sourceMappingURL=lib-image-color-grading.js.map
|