@workglow/tasks 0.2.17 → 0.2.19
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/dist/browser.d.ts +2 -2
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +1636 -1287
- package/dist/browser.js.map +58 -26
- package/dist/bun.d.ts +2 -2
- package/dist/bun.d.ts.map +1 -1
- package/dist/bun.js +1382 -1318
- package/dist/bun.js.map +56 -26
- package/dist/codec.browser.d.ts +39 -0
- package/dist/codec.browser.d.ts.map +1 -0
- package/dist/codec.node.d.ts +37 -0
- package/dist/codec.node.d.ts.map +1 -0
- package/dist/common.d.ts +39 -38
- package/dist/common.d.ts.map +1 -1
- package/dist/electron.d.ts +2 -2
- package/dist/electron.d.ts.map +1 -1
- package/dist/electron.js +1382 -1318
- package/dist/electron.js.map +56 -26
- package/dist/node.d.ts +2 -2
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +1382 -1318
- package/dist/node.js.map +56 -26
- package/dist/task/image/ImageFilterTask.d.ts +24 -0
- package/dist/task/image/ImageFilterTask.d.ts.map +1 -0
- package/dist/task/image/ImageSchemas.d.ts +15 -101
- package/dist/task/image/ImageSchemas.d.ts.map +1 -1
- package/dist/task/image/blur/ImageBlurTask.d.ts +29 -0
- package/dist/task/image/blur/ImageBlurTask.d.ts.map +1 -0
- package/dist/task/image/blur/blur.cpu.d.ts +4 -0
- package/dist/task/image/blur/blur.cpu.d.ts.map +1 -0
- package/dist/task/image/blur/blur.sharp.d.ts +2 -0
- package/dist/task/image/blur/blur.sharp.d.ts.map +1 -0
- package/dist/task/image/blur/blur.webgpu.d.ts +2 -0
- package/dist/task/image/blur/blur.webgpu.d.ts.map +1 -0
- package/dist/task/image/border/ImageBorderTask.d.ts +35 -0
- package/dist/task/image/border/ImageBorderTask.d.ts.map +1 -0
- package/dist/task/image/border/border.cpu.d.ts +10 -0
- package/dist/task/image/border/border.cpu.d.ts.map +1 -0
- package/dist/task/image/border/border.sharp.d.ts +2 -0
- package/dist/task/image/border/border.sharp.d.ts.map +1 -0
- package/dist/task/image/border/border.webgpu.d.ts +2 -0
- package/dist/task/image/border/border.webgpu.d.ts.map +1 -0
- package/dist/task/image/brightness/ImageBrightnessTask.d.ts +28 -0
- package/dist/task/image/brightness/ImageBrightnessTask.d.ts.map +1 -0
- package/dist/task/image/brightness/brightness.cpu.d.ts +4 -0
- package/dist/task/image/brightness/brightness.cpu.d.ts.map +1 -0
- package/dist/task/image/brightness/brightness.sharp.d.ts +2 -0
- package/dist/task/image/brightness/brightness.sharp.d.ts.map +1 -0
- package/dist/task/image/brightness/brightness.webgpu.d.ts +2 -0
- package/dist/task/image/brightness/brightness.webgpu.d.ts.map +1 -0
- package/dist/task/image/contrast/ImageContrastTask.d.ts +28 -0
- package/dist/task/image/contrast/ImageContrastTask.d.ts.map +1 -0
- package/dist/task/image/contrast/contrast.cpu.d.ts +4 -0
- package/dist/task/image/contrast/contrast.cpu.d.ts.map +1 -0
- package/dist/task/image/contrast/contrast.sharp.d.ts +2 -0
- package/dist/task/image/contrast/contrast.sharp.d.ts.map +1 -0
- package/dist/task/image/contrast/contrast.webgpu.d.ts +2 -0
- package/dist/task/image/contrast/contrast.webgpu.d.ts.map +1 -0
- package/dist/task/image/crop/ImageCropTask.d.ts +32 -0
- package/dist/task/image/crop/ImageCropTask.d.ts.map +1 -0
- package/dist/task/image/crop/crop.cpu.d.ts +7 -0
- package/dist/task/image/crop/crop.cpu.d.ts.map +1 -0
- package/dist/task/image/crop/crop.sharp.d.ts +2 -0
- package/dist/task/image/crop/crop.sharp.d.ts.map +1 -0
- package/dist/task/image/crop/crop.webgpu.d.ts +2 -0
- package/dist/task/image/crop/crop.webgpu.d.ts.map +1 -0
- package/dist/task/image/flip/ImageFlipTask.d.ts +28 -0
- package/dist/task/image/flip/ImageFlipTask.d.ts.map +1 -0
- package/dist/task/image/flip/flip.cpu.d.ts +4 -0
- package/dist/task/image/flip/flip.cpu.d.ts.map +1 -0
- package/dist/task/image/flip/flip.sharp.d.ts +2 -0
- package/dist/task/image/flip/flip.sharp.d.ts.map +1 -0
- package/dist/task/image/flip/flip.webgpu.d.ts +2 -0
- package/dist/task/image/flip/flip.webgpu.d.ts.map +1 -0
- package/dist/task/image/grayscale/ImageGrayscaleTask.d.ts +25 -0
- package/dist/task/image/grayscale/ImageGrayscaleTask.d.ts.map +1 -0
- package/dist/task/image/grayscale/grayscale.cpu.d.ts +2 -0
- package/dist/task/image/grayscale/grayscale.cpu.d.ts.map +1 -0
- package/dist/task/image/grayscale/grayscale.sharp.d.ts +2 -0
- package/dist/task/image/grayscale/grayscale.sharp.d.ts.map +1 -0
- package/dist/task/image/grayscale/grayscale.webgpu.d.ts +2 -0
- package/dist/task/image/grayscale/grayscale.webgpu.d.ts.map +1 -0
- package/dist/task/image/imageCodecLimits.d.ts +8 -4
- package/dist/task/image/imageCodecLimits.d.ts.map +1 -1
- package/dist/task/image/invert/ImageInvertTask.d.ts +25 -0
- package/dist/task/image/invert/ImageInvertTask.d.ts.map +1 -0
- package/dist/task/image/invert/invert.cpu.d.ts +2 -0
- package/dist/task/image/invert/invert.cpu.d.ts.map +1 -0
- package/dist/task/image/invert/invert.sharp.d.ts +2 -0
- package/dist/task/image/invert/invert.sharp.d.ts.map +1 -0
- package/dist/task/image/invert/invert.webgpu.d.ts +2 -0
- package/dist/task/image/invert/invert.webgpu.d.ts.map +1 -0
- package/dist/task/image/pixelate/ImagePixelateTask.d.ts +29 -0
- package/dist/task/image/pixelate/ImagePixelateTask.d.ts.map +1 -0
- package/dist/task/image/pixelate/pixelate.cpu.d.ts +4 -0
- package/dist/task/image/pixelate/pixelate.cpu.d.ts.map +1 -0
- package/dist/task/image/pixelate/pixelate.sharp.d.ts +2 -0
- package/dist/task/image/pixelate/pixelate.sharp.d.ts.map +1 -0
- package/dist/task/image/pixelate/pixelate.webgpu.d.ts +2 -0
- package/dist/task/image/pixelate/pixelate.webgpu.d.ts.map +1 -0
- package/dist/task/image/posterize/ImagePosterizeTask.d.ts +28 -0
- package/dist/task/image/posterize/ImagePosterizeTask.d.ts.map +1 -0
- package/dist/task/image/posterize/posterize.cpu.d.ts +4 -0
- package/dist/task/image/posterize/posterize.cpu.d.ts.map +1 -0
- package/dist/task/image/posterize/posterize.webgpu.d.ts +2 -0
- package/dist/task/image/posterize/posterize.webgpu.d.ts.map +1 -0
- package/dist/task/image/resize/ImageResizeTask.d.ts +32 -0
- package/dist/task/image/resize/ImageResizeTask.d.ts.map +1 -0
- package/dist/task/image/resize/resize.cpu.d.ts +7 -0
- package/dist/task/image/resize/resize.cpu.d.ts.map +1 -0
- package/dist/task/image/resize/resize.sharp.d.ts +2 -0
- package/dist/task/image/resize/resize.sharp.d.ts.map +1 -0
- package/dist/task/image/resize/resize.webgpu.d.ts +2 -0
- package/dist/task/image/resize/resize.webgpu.d.ts.map +1 -0
- package/dist/task/image/rotate/ImageRotateTask.d.ts +29 -0
- package/dist/task/image/rotate/ImageRotateTask.d.ts.map +1 -0
- package/dist/task/image/rotate/rotate.cpu.d.ts +5 -0
- package/dist/task/image/rotate/rotate.cpu.d.ts.map +1 -0
- package/dist/task/image/rotate/rotate.sharp.d.ts +2 -0
- package/dist/task/image/rotate/rotate.sharp.d.ts.map +1 -0
- package/dist/task/image/rotate/rotate.webgpu.d.ts +2 -0
- package/dist/task/image/rotate/rotate.webgpu.d.ts.map +1 -0
- package/dist/task/image/sepia/ImageSepiaTask.d.ts +25 -0
- package/dist/task/image/sepia/ImageSepiaTask.d.ts.map +1 -0
- package/dist/task/image/sepia/sepia.cpu.d.ts +2 -0
- package/dist/task/image/sepia/sepia.cpu.d.ts.map +1 -0
- package/dist/task/image/sepia/sepia.sharp.d.ts +2 -0
- package/dist/task/image/sepia/sepia.sharp.d.ts.map +1 -0
- package/dist/task/image/sepia/sepia.webgpu.d.ts +2 -0
- package/dist/task/image/sepia/sepia.webgpu.d.ts.map +1 -0
- package/dist/task/image/{ImageTextTask.d.ts → text/ImageTextTask.d.ts} +15 -102
- package/dist/task/image/text/ImageTextTask.d.ts.map +1 -0
- package/dist/task/image/threshold/ImageThresholdTask.d.ts +28 -0
- package/dist/task/image/threshold/ImageThresholdTask.d.ts.map +1 -0
- package/dist/task/image/threshold/threshold.cpu.d.ts +4 -0
- package/dist/task/image/threshold/threshold.cpu.d.ts.map +1 -0
- package/dist/task/image/threshold/threshold.sharp.d.ts +2 -0
- package/dist/task/image/threshold/threshold.sharp.d.ts.map +1 -0
- package/dist/task/image/threshold/threshold.webgpu.d.ts +2 -0
- package/dist/task/image/threshold/threshold.webgpu.d.ts.map +1 -0
- package/dist/task/image/tint/ImageTintTask.d.ts +30 -0
- package/dist/task/image/tint/ImageTintTask.d.ts.map +1 -0
- package/dist/task/image/tint/tint.cpu.d.ts +11 -0
- package/dist/task/image/tint/tint.cpu.d.ts.map +1 -0
- package/dist/task/image/tint/tint.sharp.d.ts +2 -0
- package/dist/task/image/tint/tint.sharp.d.ts.map +1 -0
- package/dist/task/image/tint/tint.webgpu.d.ts +2 -0
- package/dist/task/image/tint/tint.webgpu.d.ts.map +1 -0
- package/dist/task/image/transparency/ImageTransparencyTask.d.ts +28 -0
- package/dist/task/image/transparency/ImageTransparencyTask.d.ts.map +1 -0
- package/dist/task/image/transparency/transparency.cpu.d.ts +4 -0
- package/dist/task/image/transparency/transparency.cpu.d.ts.map +1 -0
- package/dist/task/image/transparency/transparency.webgpu.d.ts +2 -0
- package/dist/task/image/transparency/transparency.webgpu.d.ts.map +1 -0
- package/package.json +9 -9
- package/dist/task/image/ImageBlurTask.d.ts +0 -248
- package/dist/task/image/ImageBlurTask.d.ts.map +0 -1
- package/dist/task/image/ImageBorderTask.d.ts +0 -328
- package/dist/task/image/ImageBorderTask.d.ts.map +0 -1
- package/dist/task/image/ImageBrightnessTask.d.ts +0 -248
- package/dist/task/image/ImageBrightnessTask.d.ts.map +0 -1
- package/dist/task/image/ImageContrastTask.d.ts +0 -248
- package/dist/task/image/ImageContrastTask.d.ts.map +0 -1
- package/dist/task/image/ImageCropTask.d.ts +0 -280
- package/dist/task/image/ImageCropTask.d.ts.map +0 -1
- package/dist/task/image/ImageFlipTask.d.ts +0 -244
- package/dist/task/image/ImageFlipTask.d.ts.map +0 -1
- package/dist/task/image/ImageGrayscaleTask.d.ts +0 -232
- package/dist/task/image/ImageGrayscaleTask.d.ts.map +0 -1
- package/dist/task/image/ImageInvertTask.d.ts +0 -232
- package/dist/task/image/ImageInvertTask.d.ts.map +0 -1
- package/dist/task/image/ImagePixelateTask.d.ts +0 -246
- package/dist/task/image/ImagePixelateTask.d.ts.map +0 -1
- package/dist/task/image/ImagePosterizeTask.d.ts +0 -248
- package/dist/task/image/ImagePosterizeTask.d.ts.map +0 -1
- package/dist/task/image/ImageResizeTask.d.ts +0 -256
- package/dist/task/image/ImageResizeTask.d.ts.map +0 -1
- package/dist/task/image/ImageRotateTask.d.ts +0 -244
- package/dist/task/image/ImageRotateTask.d.ts.map +0 -1
- package/dist/task/image/ImageSepiaTask.d.ts +0 -232
- package/dist/task/image/ImageSepiaTask.d.ts.map +0 -1
- package/dist/task/image/ImageTextTask.d.ts.map +0 -1
- package/dist/task/image/ImageThresholdTask.d.ts +0 -248
- package/dist/task/image/ImageThresholdTask.d.ts.map +0 -1
- package/dist/task/image/ImageTintTask.d.ts +0 -330
- package/dist/task/image/ImageTintTask.d.ts.map +0 -1
- package/dist/task/image/ImageTransparencyTask.d.ts +0 -246
- package/dist/task/image/ImageTransparencyTask.d.ts.map +0 -1
- package/dist/task/image/ImageWatermarkTask.d.ts +0 -276
- package/dist/task/image/ImageWatermarkTask.d.ts.map +0 -1
- package/dist/task/image/imageTaskIo.d.ts +0 -20
- package/dist/task/image/imageTaskIo.d.ts.map +0 -1
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteContext, IExecutePreviewContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { ImageFromSchema } from "./ImageSchemas";
|
|
8
|
-
declare const inputSchema: {
|
|
9
|
-
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly image: {
|
|
12
|
-
readonly oneOf: readonly [{
|
|
13
|
-
readonly type: "object";
|
|
14
|
-
readonly properties: {
|
|
15
|
-
readonly data: {
|
|
16
|
-
readonly type: "array";
|
|
17
|
-
readonly items: {
|
|
18
|
-
readonly type: "number";
|
|
19
|
-
readonly format: "Uint8Clamped";
|
|
20
|
-
};
|
|
21
|
-
readonly format: "Uint8ClampedArray";
|
|
22
|
-
readonly title: "Data";
|
|
23
|
-
readonly description: "Pixel data of the image";
|
|
24
|
-
};
|
|
25
|
-
readonly width: {
|
|
26
|
-
readonly type: "integer";
|
|
27
|
-
readonly minimum: 1;
|
|
28
|
-
readonly title: "Width";
|
|
29
|
-
readonly description: "Width in pixels";
|
|
30
|
-
};
|
|
31
|
-
readonly height: {
|
|
32
|
-
readonly type: "integer";
|
|
33
|
-
readonly minimum: 1;
|
|
34
|
-
readonly title: "Height";
|
|
35
|
-
readonly description: "Height in pixels";
|
|
36
|
-
};
|
|
37
|
-
readonly channels: {
|
|
38
|
-
readonly type: "integer";
|
|
39
|
-
readonly enum: readonly [1, 3, 4];
|
|
40
|
-
readonly title: "Channels";
|
|
41
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly additionalProperties: false;
|
|
45
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
46
|
-
readonly format: "image:ImageBinary";
|
|
47
|
-
readonly title: "Image";
|
|
48
|
-
readonly description: "Raw pixel image data";
|
|
49
|
-
}, {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly format: "image:data-uri";
|
|
52
|
-
readonly title: string;
|
|
53
|
-
readonly description: string;
|
|
54
|
-
}];
|
|
55
|
-
};
|
|
56
|
-
readonly opacity: {
|
|
57
|
-
readonly type: "number";
|
|
58
|
-
readonly title: "Opacity";
|
|
59
|
-
readonly description: "Opacity level (0.0 = fully transparent, 1.0 = fully opaque)";
|
|
60
|
-
readonly minimum: 0;
|
|
61
|
-
readonly maximum: 1;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
readonly required: readonly ["image", "opacity"];
|
|
65
|
-
readonly additionalProperties: false;
|
|
66
|
-
};
|
|
67
|
-
declare const outputSchema: {
|
|
68
|
-
readonly type: "object";
|
|
69
|
-
readonly properties: {
|
|
70
|
-
readonly image: {
|
|
71
|
-
readonly oneOf: readonly [{
|
|
72
|
-
readonly type: "object";
|
|
73
|
-
readonly properties: {
|
|
74
|
-
readonly data: {
|
|
75
|
-
readonly type: "array";
|
|
76
|
-
readonly items: {
|
|
77
|
-
readonly type: "number";
|
|
78
|
-
readonly format: "Uint8Clamped";
|
|
79
|
-
};
|
|
80
|
-
readonly format: "Uint8ClampedArray";
|
|
81
|
-
readonly title: "Data";
|
|
82
|
-
readonly description: "Pixel data of the image";
|
|
83
|
-
};
|
|
84
|
-
readonly width: {
|
|
85
|
-
readonly type: "integer";
|
|
86
|
-
readonly minimum: 1;
|
|
87
|
-
readonly title: "Width";
|
|
88
|
-
readonly description: "Width in pixels";
|
|
89
|
-
};
|
|
90
|
-
readonly height: {
|
|
91
|
-
readonly type: "integer";
|
|
92
|
-
readonly minimum: 1;
|
|
93
|
-
readonly title: "Height";
|
|
94
|
-
readonly description: "Height in pixels";
|
|
95
|
-
};
|
|
96
|
-
readonly channels: {
|
|
97
|
-
readonly type: "integer";
|
|
98
|
-
readonly enum: readonly [1, 3, 4];
|
|
99
|
-
readonly title: "Channels";
|
|
100
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
readonly additionalProperties: false;
|
|
104
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
105
|
-
readonly format: "image:ImageBinary";
|
|
106
|
-
readonly title: "Image";
|
|
107
|
-
readonly description: "Raw pixel image data";
|
|
108
|
-
}, {
|
|
109
|
-
readonly type: "string";
|
|
110
|
-
readonly format: "image:data-uri";
|
|
111
|
-
readonly title: string;
|
|
112
|
-
readonly description: string;
|
|
113
|
-
}];
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
readonly required: readonly ["image"];
|
|
117
|
-
readonly additionalProperties: false;
|
|
118
|
-
};
|
|
119
|
-
export type ImageTransparencyTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
120
|
-
export type ImageTransparencyTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
121
|
-
export declare class ImageTransparencyTask<Input extends ImageTransparencyTaskInput = ImageTransparencyTaskInput, Output extends ImageTransparencyTaskOutput = ImageTransparencyTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
122
|
-
static readonly type = "ImageTransparencyTask";
|
|
123
|
-
static readonly category = "Image";
|
|
124
|
-
static title: string;
|
|
125
|
-
static description: string;
|
|
126
|
-
static inputSchema(): {
|
|
127
|
-
readonly type: "object";
|
|
128
|
-
readonly properties: {
|
|
129
|
-
readonly image: {
|
|
130
|
-
readonly oneOf: readonly [{
|
|
131
|
-
readonly type: "object";
|
|
132
|
-
readonly properties: {
|
|
133
|
-
readonly data: {
|
|
134
|
-
readonly type: "array";
|
|
135
|
-
readonly items: {
|
|
136
|
-
readonly type: "number";
|
|
137
|
-
readonly format: "Uint8Clamped";
|
|
138
|
-
};
|
|
139
|
-
readonly format: "Uint8ClampedArray";
|
|
140
|
-
readonly title: "Data";
|
|
141
|
-
readonly description: "Pixel data of the image";
|
|
142
|
-
};
|
|
143
|
-
readonly width: {
|
|
144
|
-
readonly type: "integer";
|
|
145
|
-
readonly minimum: 1;
|
|
146
|
-
readonly title: "Width";
|
|
147
|
-
readonly description: "Width in pixels";
|
|
148
|
-
};
|
|
149
|
-
readonly height: {
|
|
150
|
-
readonly type: "integer";
|
|
151
|
-
readonly minimum: 1;
|
|
152
|
-
readonly title: "Height";
|
|
153
|
-
readonly description: "Height in pixels";
|
|
154
|
-
};
|
|
155
|
-
readonly channels: {
|
|
156
|
-
readonly type: "integer";
|
|
157
|
-
readonly enum: readonly [1, 3, 4];
|
|
158
|
-
readonly title: "Channels";
|
|
159
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
readonly additionalProperties: false;
|
|
163
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
164
|
-
readonly format: "image:ImageBinary";
|
|
165
|
-
readonly title: "Image";
|
|
166
|
-
readonly description: "Raw pixel image data";
|
|
167
|
-
}, {
|
|
168
|
-
readonly type: "string";
|
|
169
|
-
readonly format: "image:data-uri";
|
|
170
|
-
readonly title: string;
|
|
171
|
-
readonly description: string;
|
|
172
|
-
}];
|
|
173
|
-
};
|
|
174
|
-
readonly opacity: {
|
|
175
|
-
readonly type: "number";
|
|
176
|
-
readonly title: "Opacity";
|
|
177
|
-
readonly description: "Opacity level (0.0 = fully transparent, 1.0 = fully opaque)";
|
|
178
|
-
readonly minimum: 0;
|
|
179
|
-
readonly maximum: 1;
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
readonly required: readonly ["image", "opacity"];
|
|
183
|
-
readonly additionalProperties: false;
|
|
184
|
-
};
|
|
185
|
-
static outputSchema(): {
|
|
186
|
-
readonly type: "object";
|
|
187
|
-
readonly properties: {
|
|
188
|
-
readonly image: {
|
|
189
|
-
readonly oneOf: readonly [{
|
|
190
|
-
readonly type: "object";
|
|
191
|
-
readonly properties: {
|
|
192
|
-
readonly data: {
|
|
193
|
-
readonly type: "array";
|
|
194
|
-
readonly items: {
|
|
195
|
-
readonly type: "number";
|
|
196
|
-
readonly format: "Uint8Clamped";
|
|
197
|
-
};
|
|
198
|
-
readonly format: "Uint8ClampedArray";
|
|
199
|
-
readonly title: "Data";
|
|
200
|
-
readonly description: "Pixel data of the image";
|
|
201
|
-
};
|
|
202
|
-
readonly width: {
|
|
203
|
-
readonly type: "integer";
|
|
204
|
-
readonly minimum: 1;
|
|
205
|
-
readonly title: "Width";
|
|
206
|
-
readonly description: "Width in pixels";
|
|
207
|
-
};
|
|
208
|
-
readonly height: {
|
|
209
|
-
readonly type: "integer";
|
|
210
|
-
readonly minimum: 1;
|
|
211
|
-
readonly title: "Height";
|
|
212
|
-
readonly description: "Height in pixels";
|
|
213
|
-
};
|
|
214
|
-
readonly channels: {
|
|
215
|
-
readonly type: "integer";
|
|
216
|
-
readonly enum: readonly [1, 3, 4];
|
|
217
|
-
readonly title: "Channels";
|
|
218
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
readonly additionalProperties: false;
|
|
222
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
223
|
-
readonly format: "image:ImageBinary";
|
|
224
|
-
readonly title: "Image";
|
|
225
|
-
readonly description: "Raw pixel image data";
|
|
226
|
-
}, {
|
|
227
|
-
readonly type: "string";
|
|
228
|
-
readonly format: "image:data-uri";
|
|
229
|
-
readonly title: string;
|
|
230
|
-
readonly description: string;
|
|
231
|
-
}];
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
readonly required: readonly ["image"];
|
|
235
|
-
readonly additionalProperties: false;
|
|
236
|
-
};
|
|
237
|
-
execute(input: Input, _context: IExecuteContext): Promise<Output | undefined>;
|
|
238
|
-
executePreview(input: Input, _context: IExecutePreviewContext): Promise<Output | undefined>;
|
|
239
|
-
}
|
|
240
|
-
declare module "@workglow/task-graph" {
|
|
241
|
-
interface Workflow {
|
|
242
|
-
imageTransparency: CreateWorkflow<ImageTransparencyTaskInput, ImageTransparencyTaskOutput, TaskConfig>;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
export {};
|
|
246
|
-
//# sourceMappingURL=ImageTransparencyTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTransparencyTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageTransparencyTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA8B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA4B7E,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,OAAO;qBACL,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,SAAS;qBAChB,WAAW,EAAE,6DAA6D;qBAC1E,OAAO,EAAE,CAAC;qBACV,OAAO,EAAE,CAAC;;;;;CAKmB,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO0B,CAAC;AAEpC,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,OAAO,WAAW,CAAC,CAAC;AAC7E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,qBAAa,qBAAqB,CAChC,KAAK,SAAS,0BAA0B,GAAG,0BAA0B,EACrE,MAAM,SAAS,2BAA2B,GAAG,2BAA2B,EACxE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,gBAAyB,IAAI,2BAA2B;IACxD,gBAAyB,QAAQ,WAAW;IAC5C,OAAuB,KAAK,SAAsB;IAClD,OAAuB,WAAW,SAAqC;IAEvE,OAAgB,WAAW;uBAxCrB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBACL,OAAO;yBACL,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,SAAS;yBAChB,WAAW,EAAE,6DAA6D;yBAC1E,OAAO,EAAE,CAAC;yBACV,OAAO,EAAE,CAAC;;;;;MAkCb;IAED,OAAgB,YAAY;uBA5BtB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BN;IAEc,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE3F;IAEc,cAAc,CAC3B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;CACF;AAED,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,iBAAiB,EAAE,cAAc,CAC/B,0BAA0B,EAC1B,2BAA2B,EAC3B,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteContext, IExecutePreviewContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { ImageFromSchema } from "./ImageSchemas";
|
|
8
|
-
declare const inputSchema: {
|
|
9
|
-
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
readonly image: {
|
|
12
|
-
readonly oneOf: readonly [{
|
|
13
|
-
readonly type: "object";
|
|
14
|
-
readonly properties: {
|
|
15
|
-
readonly data: {
|
|
16
|
-
readonly type: "array";
|
|
17
|
-
readonly items: {
|
|
18
|
-
readonly type: "number";
|
|
19
|
-
readonly format: "Uint8Clamped";
|
|
20
|
-
};
|
|
21
|
-
readonly format: "Uint8ClampedArray";
|
|
22
|
-
readonly title: "Data";
|
|
23
|
-
readonly description: "Pixel data of the image";
|
|
24
|
-
};
|
|
25
|
-
readonly width: {
|
|
26
|
-
readonly type: "integer";
|
|
27
|
-
readonly minimum: 1;
|
|
28
|
-
readonly title: "Width";
|
|
29
|
-
readonly description: "Width in pixels";
|
|
30
|
-
};
|
|
31
|
-
readonly height: {
|
|
32
|
-
readonly type: "integer";
|
|
33
|
-
readonly minimum: 1;
|
|
34
|
-
readonly title: "Height";
|
|
35
|
-
readonly description: "Height in pixels";
|
|
36
|
-
};
|
|
37
|
-
readonly channels: {
|
|
38
|
-
readonly type: "integer";
|
|
39
|
-
readonly enum: readonly [1, 3, 4];
|
|
40
|
-
readonly title: "Channels";
|
|
41
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
readonly additionalProperties: false;
|
|
45
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
46
|
-
readonly format: "image:ImageBinary";
|
|
47
|
-
readonly title: "Image";
|
|
48
|
-
readonly description: "Raw pixel image data";
|
|
49
|
-
}, {
|
|
50
|
-
readonly type: "string";
|
|
51
|
-
readonly format: "image:data-uri";
|
|
52
|
-
readonly title: string;
|
|
53
|
-
readonly description: string;
|
|
54
|
-
}];
|
|
55
|
-
};
|
|
56
|
-
readonly spacing: {
|
|
57
|
-
readonly type: "integer";
|
|
58
|
-
readonly title: "Spacing";
|
|
59
|
-
readonly description: "Pattern spacing in pixels";
|
|
60
|
-
readonly minimum: 8;
|
|
61
|
-
readonly default: 64;
|
|
62
|
-
};
|
|
63
|
-
readonly opacity: {
|
|
64
|
-
readonly type: "number";
|
|
65
|
-
readonly title: "Opacity";
|
|
66
|
-
readonly description: "Watermark opacity (0.0-1.0)";
|
|
67
|
-
readonly minimum: 0;
|
|
68
|
-
readonly maximum: 1;
|
|
69
|
-
readonly default: 0.3;
|
|
70
|
-
};
|
|
71
|
-
readonly pattern: {
|
|
72
|
-
readonly type: "string";
|
|
73
|
-
readonly enum: readonly ["diagonal-lines", "grid", "dots"];
|
|
74
|
-
readonly title: "Pattern";
|
|
75
|
-
readonly description: "Watermark pattern type";
|
|
76
|
-
readonly default: "diagonal-lines";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
readonly required: readonly ["image"];
|
|
80
|
-
readonly additionalProperties: false;
|
|
81
|
-
};
|
|
82
|
-
declare const outputSchema: {
|
|
83
|
-
readonly type: "object";
|
|
84
|
-
readonly properties: {
|
|
85
|
-
readonly image: {
|
|
86
|
-
readonly oneOf: readonly [{
|
|
87
|
-
readonly type: "object";
|
|
88
|
-
readonly properties: {
|
|
89
|
-
readonly data: {
|
|
90
|
-
readonly type: "array";
|
|
91
|
-
readonly items: {
|
|
92
|
-
readonly type: "number";
|
|
93
|
-
readonly format: "Uint8Clamped";
|
|
94
|
-
};
|
|
95
|
-
readonly format: "Uint8ClampedArray";
|
|
96
|
-
readonly title: "Data";
|
|
97
|
-
readonly description: "Pixel data of the image";
|
|
98
|
-
};
|
|
99
|
-
readonly width: {
|
|
100
|
-
readonly type: "integer";
|
|
101
|
-
readonly minimum: 1;
|
|
102
|
-
readonly title: "Width";
|
|
103
|
-
readonly description: "Width in pixels";
|
|
104
|
-
};
|
|
105
|
-
readonly height: {
|
|
106
|
-
readonly type: "integer";
|
|
107
|
-
readonly minimum: 1;
|
|
108
|
-
readonly title: "Height";
|
|
109
|
-
readonly description: "Height in pixels";
|
|
110
|
-
};
|
|
111
|
-
readonly channels: {
|
|
112
|
-
readonly type: "integer";
|
|
113
|
-
readonly enum: readonly [1, 3, 4];
|
|
114
|
-
readonly title: "Channels";
|
|
115
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
readonly additionalProperties: false;
|
|
119
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
120
|
-
readonly format: "image:ImageBinary";
|
|
121
|
-
readonly title: "Image";
|
|
122
|
-
readonly description: "Raw pixel image data";
|
|
123
|
-
}, {
|
|
124
|
-
readonly type: "string";
|
|
125
|
-
readonly format: "image:data-uri";
|
|
126
|
-
readonly title: string;
|
|
127
|
-
readonly description: string;
|
|
128
|
-
}];
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
readonly required: readonly ["image"];
|
|
132
|
-
readonly additionalProperties: false;
|
|
133
|
-
};
|
|
134
|
-
export type ImageWatermarkTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
135
|
-
export type ImageWatermarkTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
136
|
-
export declare class ImageWatermarkTask<Input extends ImageWatermarkTaskInput = ImageWatermarkTaskInput, Output extends ImageWatermarkTaskOutput = ImageWatermarkTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
137
|
-
static readonly type = "ImageWatermarkTask";
|
|
138
|
-
static readonly category = "Image";
|
|
139
|
-
static title: string;
|
|
140
|
-
static description: string;
|
|
141
|
-
static inputSchema(): {
|
|
142
|
-
readonly type: "object";
|
|
143
|
-
readonly properties: {
|
|
144
|
-
readonly image: {
|
|
145
|
-
readonly oneOf: readonly [{
|
|
146
|
-
readonly type: "object";
|
|
147
|
-
readonly properties: {
|
|
148
|
-
readonly data: {
|
|
149
|
-
readonly type: "array";
|
|
150
|
-
readonly items: {
|
|
151
|
-
readonly type: "number";
|
|
152
|
-
readonly format: "Uint8Clamped";
|
|
153
|
-
};
|
|
154
|
-
readonly format: "Uint8ClampedArray";
|
|
155
|
-
readonly title: "Data";
|
|
156
|
-
readonly description: "Pixel data of the image";
|
|
157
|
-
};
|
|
158
|
-
readonly width: {
|
|
159
|
-
readonly type: "integer";
|
|
160
|
-
readonly minimum: 1;
|
|
161
|
-
readonly title: "Width";
|
|
162
|
-
readonly description: "Width in pixels";
|
|
163
|
-
};
|
|
164
|
-
readonly height: {
|
|
165
|
-
readonly type: "integer";
|
|
166
|
-
readonly minimum: 1;
|
|
167
|
-
readonly title: "Height";
|
|
168
|
-
readonly description: "Height in pixels";
|
|
169
|
-
};
|
|
170
|
-
readonly channels: {
|
|
171
|
-
readonly type: "integer";
|
|
172
|
-
readonly enum: readonly [1, 3, 4];
|
|
173
|
-
readonly title: "Channels";
|
|
174
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
readonly additionalProperties: false;
|
|
178
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
179
|
-
readonly format: "image:ImageBinary";
|
|
180
|
-
readonly title: "Image";
|
|
181
|
-
readonly description: "Raw pixel image data";
|
|
182
|
-
}, {
|
|
183
|
-
readonly type: "string";
|
|
184
|
-
readonly format: "image:data-uri";
|
|
185
|
-
readonly title: string;
|
|
186
|
-
readonly description: string;
|
|
187
|
-
}];
|
|
188
|
-
};
|
|
189
|
-
readonly spacing: {
|
|
190
|
-
readonly type: "integer";
|
|
191
|
-
readonly title: "Spacing";
|
|
192
|
-
readonly description: "Pattern spacing in pixels";
|
|
193
|
-
readonly minimum: 8;
|
|
194
|
-
readonly default: 64;
|
|
195
|
-
};
|
|
196
|
-
readonly opacity: {
|
|
197
|
-
readonly type: "number";
|
|
198
|
-
readonly title: "Opacity";
|
|
199
|
-
readonly description: "Watermark opacity (0.0-1.0)";
|
|
200
|
-
readonly minimum: 0;
|
|
201
|
-
readonly maximum: 1;
|
|
202
|
-
readonly default: 0.3;
|
|
203
|
-
};
|
|
204
|
-
readonly pattern: {
|
|
205
|
-
readonly type: "string";
|
|
206
|
-
readonly enum: readonly ["diagonal-lines", "grid", "dots"];
|
|
207
|
-
readonly title: "Pattern";
|
|
208
|
-
readonly description: "Watermark pattern type";
|
|
209
|
-
readonly default: "diagonal-lines";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
readonly required: readonly ["image"];
|
|
213
|
-
readonly additionalProperties: false;
|
|
214
|
-
};
|
|
215
|
-
static outputSchema(): {
|
|
216
|
-
readonly type: "object";
|
|
217
|
-
readonly properties: {
|
|
218
|
-
readonly image: {
|
|
219
|
-
readonly oneOf: readonly [{
|
|
220
|
-
readonly type: "object";
|
|
221
|
-
readonly properties: {
|
|
222
|
-
readonly data: {
|
|
223
|
-
readonly type: "array";
|
|
224
|
-
readonly items: {
|
|
225
|
-
readonly type: "number";
|
|
226
|
-
readonly format: "Uint8Clamped";
|
|
227
|
-
};
|
|
228
|
-
readonly format: "Uint8ClampedArray";
|
|
229
|
-
readonly title: "Data";
|
|
230
|
-
readonly description: "Pixel data of the image";
|
|
231
|
-
};
|
|
232
|
-
readonly width: {
|
|
233
|
-
readonly type: "integer";
|
|
234
|
-
readonly minimum: 1;
|
|
235
|
-
readonly title: "Width";
|
|
236
|
-
readonly description: "Width in pixels";
|
|
237
|
-
};
|
|
238
|
-
readonly height: {
|
|
239
|
-
readonly type: "integer";
|
|
240
|
-
readonly minimum: 1;
|
|
241
|
-
readonly title: "Height";
|
|
242
|
-
readonly description: "Height in pixels";
|
|
243
|
-
};
|
|
244
|
-
readonly channels: {
|
|
245
|
-
readonly type: "integer";
|
|
246
|
-
readonly enum: readonly [1, 3, 4];
|
|
247
|
-
readonly title: "Channels";
|
|
248
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
readonly additionalProperties: false;
|
|
252
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
253
|
-
readonly format: "image:ImageBinary";
|
|
254
|
-
readonly title: "Image";
|
|
255
|
-
readonly description: "Raw pixel image data";
|
|
256
|
-
}, {
|
|
257
|
-
readonly type: "string";
|
|
258
|
-
readonly format: "image:data-uri";
|
|
259
|
-
readonly title: string;
|
|
260
|
-
readonly description: string;
|
|
261
|
-
}];
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
readonly required: readonly ["image"];
|
|
265
|
-
readonly additionalProperties: false;
|
|
266
|
-
};
|
|
267
|
-
execute(input: Input, _context: IExecuteContext): Promise<Output | undefined>;
|
|
268
|
-
executePreview(input: Input, _context: IExecutePreviewContext): Promise<Output | undefined>;
|
|
269
|
-
}
|
|
270
|
-
declare module "@workglow/task-graph" {
|
|
271
|
-
interface Workflow {
|
|
272
|
-
imageWatermark: CreateWorkflow<ImageWatermarkTaskInput, ImageWatermarkTaskOutput, TaskConfig>;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
export {};
|
|
276
|
-
//# sourceMappingURL=ImageWatermarkTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageWatermarkTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageWatermarkTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA8B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AA4D7E,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,OAAO;qBACL,IAAI,EAAE,SAAS;qBACf,KAAK,EAAE,SAAS;qBAChB,WAAW,EAAE,2BAA2B;qBACxC,OAAO,EAAE,CAAC;qBACV,OAAO,EAAE,EAAE;;iBAEb,OAAO;qBACL,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,SAAS;qBAChB,WAAW,EAAE,6BAA6B;qBAC1C,OAAO,EAAE,CAAC;qBACV,OAAO,EAAE,CAAC;qBACV,OAAO,EAAE,GAAG;;iBAEd,OAAO;qBACL,IAAI,EAAE,QAAQ;qBACd,IAAI;qBACJ,KAAK,EAAE,SAAS;qBAChB,WAAW,EAAE,wBAAwB;qBACrC,OAAO,EAAE,gBAAgB;;;;;CAKI,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI0B,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,OAAO,WAAW,CAAC,CAAC;AAC1E,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,OAAO,YAAY,CAAC,CAAC;AAE5E,qBAAa,kBAAkB,CAC7B,KAAK,SAAS,uBAAuB,GAAG,uBAAuB,EAC/D,MAAM,SAAS,wBAAwB,GAAG,wBAAwB,EAClE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,gBAAyB,IAAI,wBAAwB;IACrD,gBAAyB,QAAQ,WAAW;IAC5C,OAAuB,KAAK,SAAmB;IAC/C,OAAuB,WAAW,SAAoD;IAEtF,OAAgB,WAAW;uBApDrB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBACL,OAAO;yBACL,IAAI,EAAE,SAAS;yBACf,KAAK,EAAE,SAAS;yBAChB,WAAW,EAAE,2BAA2B;yBACxC,OAAO,EAAE,CAAC;yBACV,OAAO,EAAE,EAAE;;qBAEb,OAAO;yBACL,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,SAAS;yBAChB,WAAW,EAAE,6BAA6B;yBAC1C,OAAO,EAAE,CAAC;yBACV,OAAO,EAAE,CAAC;yBACV,OAAO,EAAE,GAAG;;qBAEd,OAAO;yBACL,IAAI,EAAE,QAAQ;yBACd,IAAI;yBACJ,KAAK,EAAE,SAAS;yBAChB,WAAW,EAAE,wBAAwB;yBACrC,OAAO,EAAE,gBAAgB;;;;;MA+B5B;IAED,OAAgB,YAAY;uBAzBtB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBN;IAEc,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE3F;IAEc,cAAc,CAC3B,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,sBAAsB,GAC/B,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAE7B;CACF;AAED,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;CACF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2026 Steven Roussey <sroussey@gmail.com>
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { ImageBinary } from "@workglow/util/media";
|
|
7
|
-
import { Image } from "@workglow/util/media";
|
|
8
|
-
/**
|
|
9
|
-
* Decode the input to pixels via the unified {@link Image} class, run `run`,
|
|
10
|
-
* then return output in the same wire form as the input:
|
|
11
|
-
*
|
|
12
|
-
* - data URI string in → data URI string out (re-encoded with input MIME),
|
|
13
|
-
* - `ImageBinary` in → `ImageBinary` out.
|
|
14
|
-
*
|
|
15
|
-
* The legacy wire format is preserved so existing task graphs and caches
|
|
16
|
-
* keep working; `Image` is used internally to funnel decode/encode through
|
|
17
|
-
* the single raster-codec registry.
|
|
18
|
-
*/
|
|
19
|
-
export declare function produceImageOutput(inputImage: Image | ImageBinary | string, run: (image: ImageBinary) => ImageBinary | Promise<ImageBinary>): Promise<ImageBinary | string>;
|
|
20
|
-
//# sourceMappingURL=imageTaskIo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imageTaskIo.d.ts","sourceRoot":"","sources":["../../../src/task/image/imageTaskIo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAuB,MAAM,sBAAsB,CAAC;AAElE;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,KAAK,GAAG,WAAW,GAAG,MAAM,EACxC,GAAG,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,GAC9D,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC,CAS/B"}
|