@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.
Files changed (87) hide show
  1. package/README.md +94 -0
  2. package/dist/.nodetool-build-stamp +1 -0
  3. package/dist/index.d.ts +19 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +19 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/nodes/game.d.ts +68 -0
  8. package/dist/nodes/game.d.ts.map +1 -0
  9. package/dist/nodes/game.js +551 -0
  10. package/dist/nodes/game.js.map +1 -0
  11. package/dist/nodes/gpu-device.d.ts +59 -0
  12. package/dist/nodes/gpu-device.d.ts.map +1 -0
  13. package/dist/nodes/gpu-device.js +144 -0
  14. package/dist/nodes/gpu-device.js.map +1 -0
  15. package/dist/nodes/image-io.d.ts +122 -0
  16. package/dist/nodes/image-io.d.ts.map +1 -0
  17. package/dist/nodes/image-io.js +381 -0
  18. package/dist/nodes/image-io.js.map +1 -0
  19. package/dist/nodes/image.d.ts +649 -0
  20. package/dist/nodes/image.d.ts.map +1 -0
  21. package/dist/nodes/image.js +2827 -0
  22. package/dist/nodes/image.js.map +1 -0
  23. package/dist/nodes/lib-grid.d.ts +19 -0
  24. package/dist/nodes/lib-grid.d.ts.map +1 -0
  25. package/dist/nodes/lib-grid.js +134 -0
  26. package/dist/nodes/lib-grid.js.map +1 -0
  27. package/dist/nodes/lib-image-channel.d.ts +38 -0
  28. package/dist/nodes/lib-image-channel.d.ts.map +1 -0
  29. package/dist/nodes/lib-image-channel.js +55 -0
  30. package/dist/nodes/lib-image-channel.js.map +1 -0
  31. package/dist/nodes/lib-image-color-grading.d.ts +3 -0
  32. package/dist/nodes/lib-image-color-grading.d.ts.map +1 -0
  33. package/dist/nodes/lib-image-color-grading.js +1080 -0
  34. package/dist/nodes/lib-image-color-grading.js.map +1 -0
  35. package/dist/nodes/lib-image-color.d.ts +96 -0
  36. package/dist/nodes/lib-image-color.d.ts.map +1 -0
  37. package/dist/nodes/lib-image-color.js +150 -0
  38. package/dist/nodes/lib-image-color.js.map +1 -0
  39. package/dist/nodes/lib-image-draw.d.ts +4 -0
  40. package/dist/nodes/lib-image-draw.d.ts.map +1 -0
  41. package/dist/nodes/lib-image-draw.js +464 -0
  42. package/dist/nodes/lib-image-draw.js.map +1 -0
  43. package/dist/nodes/lib-image-effects.d.ts +72 -0
  44. package/dist/nodes/lib-image-effects.d.ts.map +1 -0
  45. package/dist/nodes/lib-image-effects.js +123 -0
  46. package/dist/nodes/lib-image-effects.js.map +1 -0
  47. package/dist/nodes/lib-image-enhance.d.ts +3 -0
  48. package/dist/nodes/lib-image-enhance.d.ts.map +1 -0
  49. package/dist/nodes/lib-image-enhance.js +442 -0
  50. package/dist/nodes/lib-image-enhance.js.map +1 -0
  51. package/dist/nodes/lib-image-filter-extras.d.ts +72 -0
  52. package/dist/nodes/lib-image-filter-extras.d.ts.map +1 -0
  53. package/dist/nodes/lib-image-filter-extras.js +110 -0
  54. package/dist/nodes/lib-image-filter-extras.js.map +1 -0
  55. package/dist/nodes/lib-image-filter.d.ts +3 -0
  56. package/dist/nodes/lib-image-filter.d.ts.map +1 -0
  57. package/dist/nodes/lib-image-filter.js +588 -0
  58. package/dist/nodes/lib-image-filter.js.map +1 -0
  59. package/dist/nodes/lib-image-generators.d.ts +71 -0
  60. package/dist/nodes/lib-image-generators.d.ts.map +1 -0
  61. package/dist/nodes/lib-image-generators.js +158 -0
  62. package/dist/nodes/lib-image-generators.js.map +1 -0
  63. package/dist/nodes/lib-image-keyer.d.ts +34 -0
  64. package/dist/nodes/lib-image-keyer.d.ts.map +1 -0
  65. package/dist/nodes/lib-image-keyer.js +61 -0
  66. package/dist/nodes/lib-image-keyer.js.map +1 -0
  67. package/dist/nodes/lib-image-mask.d.ts +47 -0
  68. package/dist/nodes/lib-image-mask.d.ts.map +1 -0
  69. package/dist/nodes/lib-image-mask.js +59 -0
  70. package/dist/nodes/lib-image-mask.js.map +1 -0
  71. package/dist/nodes/lib-image-utils.d.ts +16 -0
  72. package/dist/nodes/lib-image-utils.d.ts.map +1 -0
  73. package/dist/nodes/lib-image-utils.js +61 -0
  74. package/dist/nodes/lib-image-utils.js.map +1 -0
  75. package/dist/nodes/lib-image-warp.d.ts +112 -0
  76. package/dist/nodes/lib-image-warp.d.ts.map +1 -0
  77. package/dist/nodes/lib-image-warp.js +236 -0
  78. package/dist/nodes/lib-image-warp.js.map +1 -0
  79. package/dist/nodes/lib-shader-utils.d.ts +105 -0
  80. package/dist/nodes/lib-shader-utils.d.ts.map +1 -0
  81. package/dist/nodes/lib-shader-utils.js +452 -0
  82. package/dist/nodes/lib-shader-utils.js.map +1 -0
  83. package/dist/nodes/sketch.d.ts +62 -0
  84. package/dist/nodes/sketch.d.ts.map +1 -0
  85. package/dist/nodes/sketch.js +325 -0
  86. package/dist/nodes/sketch.js.map +1 -0
  87. package/package.json +83 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image-io.js","sourceRoot":"","sources":["../../src/nodes/image-io.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,aAAa,EAEd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,iBAAiB,EAElB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AASrD;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,IAAgB,EAChB,KAAa,EACb,MAAc;IAEd,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAC/E,CAAC;AAED,gFAAgF;AAEhF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,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AAC,CAAC,GAAG,CAClD,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,2BAA2B,CAAC,CAAC,CAAC,CAAU,CACrE,CACF,CAAC;QACF,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,WAAW,CACzB,GAAe,EACf,IAAc;IAEd,MAAM,IAAI,GACR,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,GAAI,IAAgC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrE,OAAO,IAAI,CAAC,QAAQ,CAAC;IACrB,OAAO,IAAI,CAAC,KAAK,CAAC;IAClB,OAAO,IAAI,CAAC,MAAM,CAAC;IACnB,OAAO,IAAI,CAAC,GAAG,CAAC;IAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACrB,OAAO,IAAI,CAAC,IAAI,CAAC;IACjB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,649 @@
1
+ import { BaseNode } from "@nodetool-ai/node-sdk";
2
+ import type { Entity, FolderRef, ImageModel, InputMode, Platform } from "@nodetool-ai/protocol";
3
+ import type { ImageRef } from "@nodetool-ai/node-sdk";
4
+ import type { ProcessingContext } from "@nodetool-ai/runtime";
5
+ import { decodeRgba, rawRgbaImageRef } from "./image-io.js";
6
+ type ImageRefLike = {
7
+ uri?: string;
8
+ data?: Uint8Array | string;
9
+ mimeType?: string;
10
+ width?: number;
11
+ height?: number;
12
+ };
13
+ /** Where CanvasResize anchors the source image on the new canvas. */
14
+ type CanvasAnchor = "top-left" | "top" | "top-right" | "left" | "center" | "right" | "bottom-left" | "bottom" | "bottom-right";
15
+ /** A `color` prop's value: the editor's swatch object, or a bare CSS string. */
16
+ type ColorValue = {
17
+ type: "color";
18
+ value: string;
19
+ } | string;
20
+ export { decodeRgba, rawRgbaImageRef };
21
+ /** Output handles LoadImageFileNode.process() emits. */
22
+ type LoadImageFileNodeOutputs = {
23
+ output: ImageRef;
24
+ };
25
+ export declare class LoadImageFileNode extends BaseNode {
26
+ static readonly nodeType = "nodetool.image.LoadImageFile";
27
+ static readonly title = "Load Image File";
28
+ static readonly description = "Read an image file from disk.\n image, input, load, file";
29
+ static readonly metadataOutputTypes: {
30
+ output: string;
31
+ };
32
+ static readonly inlineFields: string[];
33
+ static readonly inputFields: never[];
34
+ static readonly platforms: readonly Platform[];
35
+ path: string;
36
+ process(): Promise<LoadImageFileNodeOutputs>;
37
+ }
38
+ export declare class LoadImageFolderNode extends BaseNode {
39
+ static readonly nodeType = "nodetool.image.LoadImageFolder";
40
+ static readonly title = "Load Image Folder";
41
+ static readonly description = "Load all images from a folder, optionally including subfolders.\n image, load, folder, files";
42
+ static readonly metadataOutputTypes: {
43
+ image: string;
44
+ path: string;
45
+ images: string;
46
+ };
47
+ static readonly inlineFields: string[];
48
+ static readonly inputFields: never[];
49
+ static readonly inputMode: InputMode;
50
+ static readonly outputCorrelation: {
51
+ image: {
52
+ kind: "iteration";
53
+ source: string;
54
+ group: string;
55
+ };
56
+ path: {
57
+ kind: "iteration";
58
+ source: string;
59
+ group: string;
60
+ };
61
+ images: {
62
+ kind: "single";
63
+ source: string;
64
+ };
65
+ };
66
+ static readonly platforms: readonly Platform[];
67
+ folder: string | FolderRef;
68
+ include_subdirectories: boolean;
69
+ extensions: string[];
70
+ pattern: string;
71
+ process(): Promise<Record<string, unknown>>;
72
+ private _loadImages;
73
+ genProcess(): AsyncGenerator<Record<string, unknown>>;
74
+ }
75
+ /** Output handles SaveImageFileImageNode.process() emits. */
76
+ type SaveImageFileImageNodeOutputs = {
77
+ output: ImageRef;
78
+ path: string;
79
+ };
80
+ export declare class SaveImageFileImageNode extends BaseNode {
81
+ static readonly nodeType = "nodetool.image.SaveImageFile";
82
+ static readonly title = "Save Image File";
83
+ static readonly description = "Write an image to disk.\n image, output, save, file";
84
+ static readonly metadataOutputTypes: {
85
+ output: string;
86
+ path: string;
87
+ };
88
+ static readonly inlineFields: string[];
89
+ static readonly inputFields: string[];
90
+ static readonly platforms: readonly Platform[];
91
+ image: ImageRefLike;
92
+ save_to_workspace: boolean;
93
+ folder: string;
94
+ filename: string;
95
+ overwrite: boolean;
96
+ process(context?: ProcessingContext): Promise<SaveImageFileImageNodeOutputs>;
97
+ }
98
+ export declare class LoadImageAssetsNode extends BaseNode {
99
+ static readonly nodeType = "nodetool.image.LoadImageAssets";
100
+ static readonly title = "Load Image Assets";
101
+ static readonly description = "Load images from an asset folder.\n load, image, file, import";
102
+ static readonly metadataOutputTypes: {
103
+ image: string;
104
+ name: string;
105
+ images: string;
106
+ };
107
+ static readonly inlineFields: never[];
108
+ static readonly inputFields: never[];
109
+ static readonly inputMode: InputMode;
110
+ static readonly outputCorrelation: {
111
+ image: {
112
+ kind: "iteration";
113
+ source: string;
114
+ group: string;
115
+ };
116
+ name: {
117
+ kind: "iteration";
118
+ source: string;
119
+ group: string;
120
+ };
121
+ images: {
122
+ kind: "single";
123
+ source: string;
124
+ };
125
+ };
126
+ static readonly platforms: readonly Platform[];
127
+ folder: FolderRef;
128
+ process(): Promise<Record<string, unknown>>;
129
+ genProcess(): AsyncGenerator<Record<string, unknown>>;
130
+ }
131
+ /** Output handles SaveImageNode.process() emits. */
132
+ type SaveImageNodeOutputs = {
133
+ output: ImageRef;
134
+ };
135
+ export declare class SaveImageNode extends BaseNode {
136
+ static readonly nodeType = "nodetool.image.SaveImage";
137
+ static readonly title = "Save Image Asset";
138
+ static readonly description = "Save an image to specified asset folder with customizable name format.\n save, image, folder, naming";
139
+ static readonly metadataOutputTypes: {
140
+ output: string;
141
+ };
142
+ static readonly inlineFields: string[];
143
+ static readonly inputFields: string[];
144
+ static readonly platforms: readonly Platform[];
145
+ image: ImageRefLike;
146
+ folder: FolderRef | string;
147
+ name: string;
148
+ process(context?: ProcessingContext): Promise<SaveImageNodeOutputs>;
149
+ }
150
+ /** Output handles GetMetadataNode.process() emits. */
151
+ type GetMetadataNodeOutputs = {
152
+ format: string;
153
+ mode: string;
154
+ width: number;
155
+ height: number;
156
+ channels: number;
157
+ };
158
+ export declare class GetMetadataNode extends BaseNode {
159
+ static readonly nodeType = "nodetool.image.GetMetadata";
160
+ static readonly title = "Get Metadata";
161
+ static readonly description = "Get metadata about the input image.\n metadata, properties, analysis, information";
162
+ static readonly metadataOutputTypes: {
163
+ format: string;
164
+ mode: string;
165
+ width: string;
166
+ height: string;
167
+ channels: string;
168
+ };
169
+ static readonly inlineFields: never[];
170
+ static readonly inputFields: string[];
171
+ static readonly platforms: readonly Platform[];
172
+ image: ImageRefLike;
173
+ process(context?: ProcessingContext): Promise<GetMetadataNodeOutputs>;
174
+ }
175
+ export declare class BatchToListNode extends BaseNode {
176
+ static readonly nodeType = "nodetool.image.BatchToList";
177
+ static readonly title = "Batch To List";
178
+ static readonly description = "Convert an image batch to a list of image references.\n batch, list, images, processing";
179
+ static readonly metadataOutputTypes: {
180
+ output: string;
181
+ };
182
+ static readonly inlineFields: never[];
183
+ static readonly inputFields: string[];
184
+ batch: ImageRefLike;
185
+ process(): Promise<Record<string, unknown>>;
186
+ }
187
+ export declare class ImagesToListNode extends BaseNode {
188
+ static readonly nodeType = "nodetool.image.ImagesToList";
189
+ static readonly title = "Images To List";
190
+ static readonly description = "Convert all dynamic properties to a list of image references.\n list, images, processing";
191
+ static readonly metadataOutputTypes: {
192
+ output: string;
193
+ };
194
+ static readonly supportsDynamicInputs = true;
195
+ static readonly inlineFields: never[];
196
+ static readonly inputFields: never[];
197
+ process(): Promise<Record<string, unknown>>;
198
+ }
199
+ /** Output handles PasteNode.process() emits. */
200
+ type PasteNodeOutputs = {
201
+ output: ImageRefLike | ImageRef;
202
+ };
203
+ export declare class PasteNode extends BaseNode {
204
+ static readonly nodeType = "nodetool.image.Paste";
205
+ static readonly title = "Paste";
206
+ static readonly description = "Paste one image onto another at specified coordinates.\n paste, composite, positioning, overlay";
207
+ static readonly metadataOutputTypes: {
208
+ output: string;
209
+ };
210
+ static readonly inlineFields: never[];
211
+ static readonly inputFields: string[];
212
+ image: ImageRefLike;
213
+ paste: ImageRefLike;
214
+ left: number;
215
+ top: number;
216
+ process(context?: ProcessingContext): Promise<PasteNodeOutputs>;
217
+ }
218
+ /** Output handles ResizeImageNode.process() emits. */
219
+ type ResizeImageNodeOutputs = {
220
+ output: ImageRefLike | ImageRef;
221
+ };
222
+ export declare class ResizeImageNode extends BaseNode {
223
+ static readonly nodeType = "nodetool.image.ResizeImage";
224
+ static readonly title = "Resize Image";
225
+ static readonly description = "Scale, set exact dimensions, or fit inside a box. In dimensions mode, set width or height to 0 to preserve that axis.\n image, resize, scale, fit, dimensions";
226
+ static readonly metadataOutputTypes: {
227
+ output: string;
228
+ };
229
+ static readonly inlineFields: string[];
230
+ static readonly inputFields: string[];
231
+ image: ImageRefLike;
232
+ mode: "scale" | "dimensions" | "fit";
233
+ scale: number;
234
+ width: number;
235
+ height: number;
236
+ process(context?: ProcessingContext): Promise<ResizeImageNodeOutputs>;
237
+ }
238
+ /** Output handles ScaleNode.process() emits. */
239
+ type ScaleNodeOutputs = {
240
+ output: ImageRefLike | ImageRef;
241
+ };
242
+ export declare class ScaleNode extends BaseNode {
243
+ static readonly nodeType = "nodetool.image.Scale";
244
+ static readonly title = "Scale";
245
+ static readonly deprecated = true;
246
+ static readonly replacedBy = "nodetool.image.ResizeImage";
247
+ static readonly description: string;
248
+ static readonly metadataOutputTypes: {
249
+ output: string;
250
+ };
251
+ static readonly inlineFields: never[];
252
+ static readonly inputFields: string[];
253
+ image: ImageRefLike;
254
+ scale: number;
255
+ process(context?: ProcessingContext): Promise<ScaleNodeOutputs>;
256
+ }
257
+ /** Output handles ResizeNode.process() emits. */
258
+ type ResizeNodeOutputs = {
259
+ output: ImageRefLike | ImageRef;
260
+ };
261
+ export declare class ResizeNode extends BaseNode {
262
+ static readonly nodeType = "nodetool.image.Resize";
263
+ static readonly title = "Resize";
264
+ static readonly deprecated = true;
265
+ static readonly replacedBy = "nodetool.image.ResizeImage";
266
+ static readonly description: string;
267
+ static readonly metadataOutputTypes: {
268
+ output: string;
269
+ };
270
+ static readonly inlineFields: never[];
271
+ static readonly inputFields: string[];
272
+ image: ImageRefLike;
273
+ width: number;
274
+ height: number;
275
+ process(context?: ProcessingContext): Promise<ResizeNodeOutputs>;
276
+ }
277
+ /** Output handles CanvasResizeNode.process() emits. */
278
+ type CanvasResizeNodeOutputs = {
279
+ output: ImageRefLike | ImageRef;
280
+ };
281
+ export declare class CanvasResizeNode extends BaseNode {
282
+ static readonly nodeType = "nodetool.image.CanvasResize";
283
+ static readonly title = "Canvas Resize";
284
+ static readonly description = "Expand the canvas around an image without scaling its pixels.\n canvas, resize, pad, outpaint, expand, anchor";
285
+ static readonly metadataOutputTypes: {
286
+ output: string;
287
+ };
288
+ static readonly inlineFields: string[];
289
+ static readonly inputFields: string[];
290
+ image: ImageRefLike;
291
+ mode: "fixed" | "scale" | "padding";
292
+ anchor: CanvasAnchor;
293
+ width: number;
294
+ height: number;
295
+ scale: number;
296
+ padding_unit: "px" | "percent";
297
+ top: number;
298
+ bottom: number;
299
+ left: number;
300
+ right: number;
301
+ color: ColorValue;
302
+ process(context?: ProcessingContext): Promise<CanvasResizeNodeOutputs>;
303
+ }
304
+ /** Output handles CropNode.process() emits. */
305
+ type CropNodeOutputs = {
306
+ output: ImageRefLike | ImageRef;
307
+ };
308
+ export declare class CropNode extends BaseNode {
309
+ static readonly nodeType = "nodetool.image.Crop";
310
+ static readonly title = "Crop";
311
+ static readonly description = "Crop an image to specified coordinates.\n image, crop";
312
+ static readonly metadataOutputTypes: {
313
+ output: string;
314
+ };
315
+ static readonly inlineFields: never[];
316
+ static readonly inputFields: string[];
317
+ image: ImageRefLike;
318
+ left: number;
319
+ top: number;
320
+ right: number;
321
+ bottom: number;
322
+ process(context?: ProcessingContext): Promise<CropNodeOutputs>;
323
+ }
324
+ /** Output handles FitNode.process() emits. */
325
+ type FitNodeOutputs = {
326
+ output: ImageRefLike | ImageRef;
327
+ };
328
+ export declare class FitNode extends BaseNode {
329
+ static readonly nodeType = "nodetool.image.Fit";
330
+ static readonly title = "Fit";
331
+ static readonly deprecated = true;
332
+ static readonly replacedBy = "nodetool.image.ResizeImage";
333
+ static readonly description: string;
334
+ static readonly metadataOutputTypes: {
335
+ output: string;
336
+ };
337
+ static readonly inlineFields: never[];
338
+ static readonly inputFields: string[];
339
+ image: ImageRefLike;
340
+ width: number;
341
+ height: number;
342
+ process(context?: ProcessingContext): Promise<FitNodeOutputs>;
343
+ }
344
+ /** Output handles TextToImageNode.process() emits. */
345
+ type TextToImageNodeOutputs = {
346
+ output: ImageRef;
347
+ };
348
+ export declare class TextToImageNode extends BaseNode {
349
+ static readonly nodeType = "nodetool.image.TextToImage";
350
+ static readonly body = "content_card";
351
+ static readonly title = "Text To Image";
352
+ static readonly description = "Generate images from text prompts using any supported image provider. Automatically routes to the appropriate backend (HuggingFace, FAL, MLX).\n image, generation, AI, text-to-image, t2i";
353
+ static readonly metadataOutputTypes: {
354
+ output: string;
355
+ };
356
+ static readonly inlineFields: never[];
357
+ static readonly inputFields: string[];
358
+ static readonly autoSaveAsset = true;
359
+ model: ImageModel;
360
+ prompt: string;
361
+ negative_prompt: string;
362
+ entities: Entity[];
363
+ aspect_ratio: string;
364
+ resolution: string;
365
+ process(context?: ProcessingContext): Promise<TextToImageNodeOutputs>;
366
+ }
367
+ /** Output handles ImageToImageNode.process() emits. */
368
+ type ImageToImageNodeOutputs = {
369
+ output: ImageRef;
370
+ };
371
+ export declare class ImageToImageNode extends BaseNode {
372
+ static readonly nodeType = "nodetool.image.ImageToImage";
373
+ static readonly body = "content_card";
374
+ static readonly title = "Image To Image";
375
+ static readonly description = "Transform images using text prompts with any supported image provider. Automatically routes to the appropriate backend (HuggingFace, FAL, MLX).\n image, transformation, AI, image-to-image, i2i";
376
+ static readonly metadataOutputTypes: {
377
+ output: string;
378
+ };
379
+ static readonly inlineFields: never[];
380
+ static readonly inputFields: string[];
381
+ static readonly autoSaveAsset = true;
382
+ model: ImageModel;
383
+ image: ImageRefLike[];
384
+ prompt: string;
385
+ negative_prompt: string;
386
+ entities: Record<string, unknown>[];
387
+ strength: number;
388
+ aspect_ratio: string;
389
+ resolution: string;
390
+ scheduler: string;
391
+ process(context?: ProcessingContext): Promise<ImageToImageNodeOutputs>;
392
+ }
393
+ export declare class RotateAndFlipNode extends BaseNode {
394
+ static readonly nodeType = "nodetool.image.RotateAndFlip";
395
+ static readonly title = "Rotate & Flip";
396
+ static readonly description = "Rotate and/or flip an image in a single step.\n image, rotate, flip, mirror, orientation, transform";
397
+ static readonly metadataOutputTypes: {
398
+ output: string;
399
+ };
400
+ static readonly inlineFields: never[];
401
+ static readonly inputFields: string[];
402
+ image: ImageRefLike;
403
+ angle: number;
404
+ flip_horizontal: boolean;
405
+ flip_vertical: boolean;
406
+ process(context?: ProcessingContext): Promise<Record<string, unknown>>;
407
+ }
408
+ /** Output handles ChannelsNode.process() emits. */
409
+ type ChannelsNodeOutputs = {
410
+ output: ImageRef | ImageRef | ImageRefLike;
411
+ };
412
+ export declare class ChannelsNode extends BaseNode {
413
+ static readonly nodeType = "nodetool.image.Channels";
414
+ static readonly title = "Channels";
415
+ static readonly description = "Extract a single channel from an image as a grayscale preview.\n image, channel, red, green, blue, alpha, luminance";
416
+ static readonly metadataOutputTypes: {
417
+ output: string;
418
+ };
419
+ static readonly inlineFields: never[];
420
+ static readonly inputFields: string[];
421
+ image: ImageRefLike;
422
+ channel: string;
423
+ process(context?: ProcessingContext): Promise<ChannelsNodeOutputs>;
424
+ }
425
+ /** Output handles BlurNode.process() emits. */
426
+ type BlurNodeOutputs = {
427
+ output: ImageRef | ImageRefLike | ImageRef;
428
+ };
429
+ export declare class BlurNode extends BaseNode {
430
+ static readonly nodeType = "nodetool.image.Blur";
431
+ static readonly title = "Blur";
432
+ static readonly description = "Blur an image \u2014 Box, Gaussian, or horizontal Motion variants.\n image, blur, gaussian, box, motion, filter";
433
+ static readonly metadataOutputTypes: {
434
+ output: string;
435
+ };
436
+ static readonly inlineFields: never[];
437
+ static readonly inputFields: string[];
438
+ image: ImageRefLike;
439
+ blur_type: string;
440
+ size: number;
441
+ process(context?: ProcessingContext): Promise<BlurNodeOutputs>;
442
+ }
443
+ /** Output handles LevelsNode.process() emits. */
444
+ type LevelsNodeOutputs = {
445
+ output: ImageRefLike | ImageRef;
446
+ };
447
+ export declare class LevelsNode extends BaseNode {
448
+ static readonly nodeType = "nodetool.image.Levels";
449
+ static readonly title = "Levels";
450
+ static readonly description = "Adjust input black point, gamma, and white point per RGB channel.\n image, levels, color, tone, curves";
451
+ static readonly metadataOutputTypes: {
452
+ output: string;
453
+ };
454
+ static readonly inlineFields: never[];
455
+ static readonly inputFields: string[];
456
+ image: ImageRefLike;
457
+ r_black: number;
458
+ r_gamma: number;
459
+ r_white: number;
460
+ g_black: number;
461
+ g_gamma: number;
462
+ g_white: number;
463
+ b_black: number;
464
+ b_gamma: number;
465
+ b_white: number;
466
+ process(context?: ProcessingContext): Promise<LevelsNodeOutputs>;
467
+ }
468
+ /**
469
+ * Compositor — stacks multiple image layers with per-layer opacity and
470
+ * blend mode. Dynamic image inputs are named `image_0`, `image_1`, ...;
471
+ * the lowest-index input is the top (frontmost) layer, subsequent layers
472
+ * are composited behind it. Per-layer state lives in the `layers` list,
473
+ * indexed positionally against the sorted image inputs. Hidden /
474
+ * zero-opacity layers are skipped.
475
+ *
476
+ * Compositing runs on the GPU through the shared WebGPULayerCompositor (the
477
+ * same engine the sketch editor and timeline preview use), via Node.js Dawn —
478
+ * the blend math is identical to the browser path. WebGPU is required; there
479
+ * is no CPU fallback. Sharp is used only as the codec layer: decode each layer
480
+ * to straight-alpha RGBA on the way in, encode the composite to PNG on the
481
+ * way out.
482
+ */
483
+ /** Output handles CompositorNode.process() emits. */
484
+ type CompositorNodeOutputs = {
485
+ output: ImageRef;
486
+ };
487
+ export declare class CompositorNode extends BaseNode {
488
+ static readonly nodeType = "nodetool.image.Compositor";
489
+ static readonly title = "Compositor";
490
+ static readonly description = "Composite multiple image layers with per-layer opacity and blend mode.\n image, compositor, blend, layers, mask";
491
+ static readonly metadataOutputTypes: {
492
+ output: string;
493
+ };
494
+ static readonly supportsDynamicInputs = true;
495
+ static readonly inlineFields: never[];
496
+ static readonly inputFields: never[];
497
+ layers: unknown;
498
+ canvas_width: number;
499
+ canvas_height: number;
500
+ process(context?: ProcessingContext): Promise<CompositorNodeOutputs>;
501
+ }
502
+ /**
503
+ * Painter — paint an alpha mask atop a source image. The mask is
504
+ * authored interactively in the web UI; `mask_data` carries a base64
505
+ * PNG of the painted mask (alpha == painted opacity). On execution we
506
+ * decode `mask_data` into an image output (the mask itself) and emit
507
+ * the source image alongside for downstream pipelines.
508
+ *
509
+ * Plan §9.E9 / §12. Standalone (not an extension of the sketch node) so
510
+ * the bespoke body stays focused on the paint-on-image workflow.
511
+ */
512
+ /** Output handles PainterNode.process() emits. */
513
+ type PainterNodeOutputs = {
514
+ mask: ImageRef;
515
+ image: ImageRef | {
516
+ uri?: string;
517
+ data?: Uint8Array | string;
518
+ mimeType?: string;
519
+ width?: number;
520
+ height?: number;
521
+ };
522
+ };
523
+ export declare class PainterNode extends BaseNode {
524
+ static readonly nodeType = "nodetool.image.Painter";
525
+ static readonly title = "Painter";
526
+ static readonly description = "Paint an alpha mask on top of an image and output the mask.\n image, painter, mask, brush, paint";
527
+ static readonly metadataOutputTypes: {
528
+ mask: string;
529
+ image: string;
530
+ };
531
+ static readonly inlineFields: string[];
532
+ static readonly inputFields: string[];
533
+ static readonly platforms: readonly Platform[];
534
+ image: ImageRefLike;
535
+ mask_data: unknown;
536
+ canvas_width: number;
537
+ canvas_height: number;
538
+ process(context?: ProcessingContext): Promise<PainterNodeOutputs>;
539
+ }
540
+ /** Output handles UpscaleImageNode.process() emits. */
541
+ type UpscaleImageNodeOutputs = {
542
+ output: ImageRef;
543
+ };
544
+ export declare class UpscaleImageNode extends BaseNode {
545
+ static readonly nodeType = "nodetool.image.Upscale";
546
+ static readonly body = "content_card";
547
+ static readonly title = "Upscale Image";
548
+ static readonly description = "Increase the resolution and detail of an image using any supported upscaling provider.\n image, upscale, super-resolution, enhance, AI";
549
+ static readonly metadataOutputTypes: {
550
+ output: string;
551
+ };
552
+ static readonly inlineFields: never[];
553
+ static readonly inputFields: string[];
554
+ static readonly autoSaveAsset = true;
555
+ model: ImageModel;
556
+ image: ImageRefLike;
557
+ scale: 2 | 4;
558
+ prompt: string;
559
+ process(context?: ProcessingContext): Promise<UpscaleImageNodeOutputs>;
560
+ }
561
+ /** Output handles RemoveBackgroundNode.process() emits. */
562
+ type RemoveBackgroundNodeOutputs = {
563
+ output: ImageRef;
564
+ };
565
+ export declare class RemoveBackgroundNode extends BaseNode {
566
+ static readonly nodeType = "nodetool.image.RemoveBackground";
567
+ static readonly body = "content_card";
568
+ static readonly title = "Remove Background";
569
+ static readonly description = "Remove the background from an image, returning a cutout with transparency.\n image, background, remove, matte, cutout, AI";
570
+ static readonly metadataOutputTypes: {
571
+ output: string;
572
+ };
573
+ static readonly inlineFields: never[];
574
+ static readonly inputFields: string[];
575
+ static readonly autoSaveAsset = true;
576
+ model: ImageModel;
577
+ image: ImageRefLike;
578
+ process(context?: ProcessingContext): Promise<RemoveBackgroundNodeOutputs>;
579
+ }
580
+ /** Output handles RelightImageNode.process() emits. */
581
+ type RelightImageNodeOutputs = {
582
+ output: ImageRef;
583
+ };
584
+ export declare class RelightImageNode extends BaseNode {
585
+ static readonly nodeType = "nodetool.image.Relight";
586
+ static readonly body = "content_card";
587
+ static readonly title = "Relight Image";
588
+ static readonly description = "Re-light a subject according to a text prompt using any supported image-editing model.\n image, relight, lighting, AI, image-to-image";
589
+ static readonly metadataOutputTypes: {
590
+ output: string;
591
+ };
592
+ static readonly inlineFields: never[];
593
+ static readonly inputFields: string[];
594
+ static readonly autoSaveAsset = true;
595
+ model: ImageModel;
596
+ image: ImageRefLike;
597
+ prompt: string;
598
+ negative_prompt: string;
599
+ process(context?: ProcessingContext): Promise<RelightImageNodeOutputs>;
600
+ }
601
+ /** Output handles SegmentImageNode.process() emits. */
602
+ type SegmentImageNodeOutputs = {
603
+ masks: ImageRef[];
604
+ labels: string[];
605
+ scores: number[];
606
+ };
607
+ export declare class SegmentImageNode extends BaseNode {
608
+ static readonly nodeType = "nodetool.image.Segment";
609
+ static readonly body = "content_card";
610
+ static readonly title = "Segment Image";
611
+ static readonly description = "Find objects in an image and return one mask per object, using any supported segmentation provider.\n image, segment, mask, sam, cutout, AI";
612
+ static readonly metadataOutputTypes: {
613
+ masks: string;
614
+ labels: string;
615
+ scores: string;
616
+ };
617
+ static readonly inlineFields: never[];
618
+ static readonly inputFields: string[];
619
+ model: ImageModel;
620
+ image: ImageRefLike;
621
+ prompt: string;
622
+ points: Record<string, unknown>[];
623
+ box: Record<string, unknown>;
624
+ max_masks: number;
625
+ min_confidence: number;
626
+ process(context?: ProcessingContext): Promise<SegmentImageNodeOutputs>;
627
+ }
628
+ /** Output handles VectorizeImageNode.process() emits. */
629
+ type VectorizeImageNodeOutputs = {
630
+ output: {
631
+ content: string;
632
+ };
633
+ };
634
+ export declare class VectorizeImageNode extends BaseNode {
635
+ static readonly nodeType = "nodetool.image.Vectorize";
636
+ static readonly body = "content_card";
637
+ static readonly title = "Vectorize Image";
638
+ static readonly description = "Convert a raster image into a scalable vector (SVG) using any supported vectorization provider.\n image, vector, svg, vectorize, trace, AI";
639
+ static readonly metadataOutputTypes: {
640
+ output: string;
641
+ };
642
+ static readonly inlineFields: never[];
643
+ static readonly inputFields: string[];
644
+ model: ImageModel;
645
+ image: ImageRefLike;
646
+ process(context?: ProcessingContext): Promise<VectorizeImageNodeOutputs>;
647
+ }
648
+ export declare const IMAGE_NODES: (typeof LoadImageFileNode | typeof LoadImageFolderNode | typeof SaveImageFileImageNode | typeof LoadImageAssetsNode | typeof SaveImageNode | typeof GetMetadataNode | typeof BatchToListNode | typeof ImagesToListNode | typeof PasteNode | typeof ResizeImageNode | typeof ScaleNode | typeof ResizeNode | typeof CanvasResizeNode | typeof CropNode | typeof FitNode | typeof TextToImageNode | typeof ImageToImageNode | typeof RotateAndFlipNode | typeof ChannelsNode | typeof BlurNode | typeof LevelsNode | typeof CompositorNode | typeof PainterNode | typeof UpscaleImageNode | typeof RemoveBackgroundNode | typeof RelightImageNode | typeof SegmentImageNode | typeof VectorizeImageNode)[];
649
+ //# sourceMappingURL=image.d.ts.map