@rosepetal/node-red-contrib-image-tools 1.1.3

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 (131) hide show
  1. package/.gitattributes +6 -0
  2. package/.github/workflows/build-prebuild.yml +326 -0
  3. package/LICENSE +13 -0
  4. package/README.md +161 -0
  5. package/artifacts/darwin-arm64/package.json +25 -0
  6. package/artifacts/linux-arm64/package.json +26 -0
  7. package/artifacts/linux-x64/package.json +26 -0
  8. package/artifacts/linuxmusl-x64/package.json +26 -0
  9. package/assets/flow_time_example.gif +0 -0
  10. package/assets/nodes/io/array-in-demo.gif +0 -0
  11. package/assets/nodes/io/array-out-demo.gif +0 -0
  12. package/assets/nodes/io/array-select-demo.gif +0 -0
  13. package/assets/nodes/io/image-in-demo.gif +0 -0
  14. package/assets/nodes/mix/concat-demo.gif +0 -0
  15. package/assets/nodes/mix/mosaic-demo.gif +0 -0
  16. package/assets/nodes/transform/crop-demo.gif +0 -0
  17. package/assets/nodes/transform/filter-demo.gif +0 -0
  18. package/assets/nodes/transform/padding-demo.gif +0 -0
  19. package/assets/nodes/transform/resize-demo.gif +0 -0
  20. package/assets/nodes/transform/rotate-demo.gif +0 -0
  21. package/docs/nodes/blend/add-mask.md +275 -0
  22. package/docs/nodes/blend/add-masks.md +284 -0
  23. package/docs/nodes/blend/blend.md +248 -0
  24. package/docs/nodes/io/array-in.md +119 -0
  25. package/docs/nodes/io/array-out.md +150 -0
  26. package/docs/nodes/io/array-select.md +157 -0
  27. package/docs/nodes/io/image-in.md +131 -0
  28. package/docs/nodes/io/image-out.md +179 -0
  29. package/docs/nodes/io/queue.md +57 -0
  30. package/docs/nodes/io/save-file.md +30 -0
  31. package/docs/nodes/mix/advanced-mosaic.md +108 -0
  32. package/docs/nodes/mix/concat.md +127 -0
  33. package/docs/nodes/mix/mosaic.md +146 -0
  34. package/docs/nodes/specialized/cropBB.md +271 -0
  35. package/docs/nodes/specialized/image-align.md +426 -0
  36. package/docs/nodes/transform/crop.md +132 -0
  37. package/docs/nodes/transform/draw.md +77 -0
  38. package/docs/nodes/transform/filter.md +84 -0
  39. package/docs/nodes/transform/padding.md +133 -0
  40. package/docs/nodes/transform/resize.md +158 -0
  41. package/docs/nodes/transform/rotate.md +121 -0
  42. package/docs/nodes/util/block-detect.md +46 -0
  43. package/install.sh +144 -0
  44. package/node-red-contrib-image-tools/lib/cpp-bridge.js +224 -0
  45. package/node-red-contrib-image-tools/lib/node-utils.js +529 -0
  46. package/node-red-contrib-image-tools/nodes/blend/add-bbs.html +590 -0
  47. package/node-red-contrib-image-tools/nodes/blend/add-bbs.js +241 -0
  48. package/node-red-contrib-image-tools/nodes/blend/add-mask.html +449 -0
  49. package/node-red-contrib-image-tools/nodes/blend/add-mask.js +170 -0
  50. package/node-red-contrib-image-tools/nodes/blend/add-masks.html +703 -0
  51. package/node-red-contrib-image-tools/nodes/blend/add-masks.js +321 -0
  52. package/node-red-contrib-image-tools/nodes/blend/blend.html +552 -0
  53. package/node-red-contrib-image-tools/nodes/blend/blend.js +124 -0
  54. package/node-red-contrib-image-tools/nodes/io/array-in.html +110 -0
  55. package/node-red-contrib-image-tools/nodes/io/array-in.js +113 -0
  56. package/node-red-contrib-image-tools/nodes/io/array-out.html +125 -0
  57. package/node-red-contrib-image-tools/nodes/io/array-out.js +213 -0
  58. package/node-red-contrib-image-tools/nodes/io/array-select.html +156 -0
  59. package/node-red-contrib-image-tools/nodes/io/array-select.js +187 -0
  60. package/node-red-contrib-image-tools/nodes/io/folder-in.html +248 -0
  61. package/node-red-contrib-image-tools/nodes/io/folder-in.js +335 -0
  62. package/node-red-contrib-image-tools/nodes/io/image-in.html +146 -0
  63. package/node-red-contrib-image-tools/nodes/io/image-in.js +143 -0
  64. package/node-red-contrib-image-tools/nodes/io/image-out.html +506 -0
  65. package/node-red-contrib-image-tools/nodes/io/image-out.js +545 -0
  66. package/node-red-contrib-image-tools/nodes/io/queue.html +119 -0
  67. package/node-red-contrib-image-tools/nodes/io/queue.js +191 -0
  68. package/node-red-contrib-image-tools/nodes/io/save-file.html +243 -0
  69. package/node-red-contrib-image-tools/nodes/io/save-file.js +440 -0
  70. package/node-red-contrib-image-tools/nodes/mix/advanced-mosaic.html +2149 -0
  71. package/node-red-contrib-image-tools/nodes/mix/advanced-mosaic.js +195 -0
  72. package/node-red-contrib-image-tools/nodes/mix/concat.html +390 -0
  73. package/node-red-contrib-image-tools/nodes/mix/concat.js +112 -0
  74. package/node-red-contrib-image-tools/nodes/mix/mosaic.html +550 -0
  75. package/node-red-contrib-image-tools/nodes/mix/mosaic.js +151 -0
  76. package/node-red-contrib-image-tools/nodes/specialized/cropBB.html +268 -0
  77. package/node-red-contrib-image-tools/nodes/specialized/cropBB.js +277 -0
  78. package/node-red-contrib-image-tools/nodes/specialized/image-align.html +528 -0
  79. package/node-red-contrib-image-tools/nodes/specialized/image-align.js +306 -0
  80. package/node-red-contrib-image-tools/nodes/transform/crop.html +410 -0
  81. package/node-red-contrib-image-tools/nodes/transform/crop.js +149 -0
  82. package/node-red-contrib-image-tools/nodes/transform/draw.html +719 -0
  83. package/node-red-contrib-image-tools/nodes/transform/draw.js +509 -0
  84. package/node-red-contrib-image-tools/nodes/transform/filter.html +578 -0
  85. package/node-red-contrib-image-tools/nodes/transform/filter.js +177 -0
  86. package/node-red-contrib-image-tools/nodes/transform/padding.html +475 -0
  87. package/node-red-contrib-image-tools/nodes/transform/padding.js +142 -0
  88. package/node-red-contrib-image-tools/nodes/transform/resize.html +429 -0
  89. package/node-red-contrib-image-tools/nodes/transform/resize.js +162 -0
  90. package/node-red-contrib-image-tools/nodes/transform/rotate.html +299 -0
  91. package/node-red-contrib-image-tools/nodes/transform/rotate.js +141 -0
  92. package/node-red-contrib-image-tools/nodes/util/block-detect.html +85 -0
  93. package/node-red-contrib-image-tools/nodes/util/block-detect.js +136 -0
  94. package/node-red-contrib-image-tools/nodes/util/clean-debug.html +201 -0
  95. package/node-red-contrib-image-tools/nodes/util/clean-debug.js +393 -0
  96. package/node-red-contrib-image-tools/package.json +64 -0
  97. package/npm/darwin-arm64/lib/.gitkeep +1 -0
  98. package/npm/darwin-arm64/package.json +25 -0
  99. package/npm/darwin-x64/lib/.gitkeep +1 -0
  100. package/npm/darwin-x64/package.json +25 -0
  101. package/npm/linux-arm64/lib/.gitkeep +1 -0
  102. package/npm/linux-arm64/package.json +26 -0
  103. package/npm/linux-x64/lib/.gitkeep +1 -0
  104. package/npm/linux-x64/package.json +26 -0
  105. package/npm/linuxmusl-x64/lib/.gitkeep +1 -0
  106. package/npm/linuxmusl-x64/package.json +26 -0
  107. package/npm/win32-x64/lib/.gitkeep +1 -0
  108. package/npm/win32-x64/package.json +25 -0
  109. package/package.json +74 -0
  110. package/rosepetal-image-engine/binding.gyp +153 -0
  111. package/rosepetal-image-engine/package.json +19 -0
  112. package/rosepetal-image-engine/src/add-bbs.cpp +433 -0
  113. package/rosepetal-image-engine/src/add-mask.cpp +240 -0
  114. package/rosepetal-image-engine/src/add-masks.cpp +638 -0
  115. package/rosepetal-image-engine/src/advanced-mosaic.cpp +740 -0
  116. package/rosepetal-image-engine/src/blend.cpp +200 -0
  117. package/rosepetal-image-engine/src/concat.cpp +329 -0
  118. package/rosepetal-image-engine/src/crop.cpp +139 -0
  119. package/rosepetal-image-engine/src/draw.cpp +414 -0
  120. package/rosepetal-image-engine/src/filter.cpp +230 -0
  121. package/rosepetal-image-engine/src/filters/kernels.h +171 -0
  122. package/rosepetal-image-engine/src/image-align.cpp +551 -0
  123. package/rosepetal-image-engine/src/main.cpp +36 -0
  124. package/rosepetal-image-engine/src/mosaic.cpp +373 -0
  125. package/rosepetal-image-engine/src/padding.cpp +124 -0
  126. package/rosepetal-image-engine/src/resize.cpp +210 -0
  127. package/rosepetal-image-engine/src/rotate.cpp +177 -0
  128. package/rosepetal-image-engine/src/utils.h +563 -0
  129. package/rosepetal-image-engine/test-formats.js +119 -0
  130. package/scripts/build-opencv-static.ps1 +166 -0
  131. package/scripts/build-opencv-static.sh +147 -0
@@ -0,0 +1,393 @@
1
+ "use strict";
2
+
3
+ const util = require("util");
4
+
5
+ module.exports = function registerCleanDebugNode(RED) {
6
+ const DEFAULT_DEBUG_MAX_LENGTH = (RED.settings && RED.settings.debugMaxLength) || 1000;
7
+ const BUFFER_PREVIEW_BYTES = Math.max(DEFAULT_DEBUG_MAX_LENGTH, 512);
8
+
9
+ function CleanDebugNode(config) {
10
+ RED.nodes.createNode(this, config);
11
+ const node = this;
12
+
13
+ node.name = config.name;
14
+ node.active = config.active !== false;
15
+ node.tosidebar = config.tosidebar !== false;
16
+ node.console = !!config.console;
17
+ node.complete = (config.complete && config.complete !== "") ? config.complete : "payload";
18
+ node.targetType = config.targetType || "msg";
19
+ node.clean = config.clean !== false; // default true
20
+
21
+ node.on("input", function onInput(msg, send, done) {
22
+ if (!node.active) {
23
+ if (done) {
24
+ done();
25
+ }
26
+ return;
27
+ }
28
+
29
+ resolveDebugValue(msg)
30
+ .then((resolved) => handleDebugOutput(msg, resolved))
31
+ .then(() => {
32
+ if (done) {
33
+ done();
34
+ }
35
+ })
36
+ .catch((err) => {
37
+ node.error(err && err.message ? err.message : err, msg);
38
+ if (done) {
39
+ done(err);
40
+ }
41
+ });
42
+ });
43
+
44
+ /**
45
+ * Resolve the configured value the node should display.
46
+ * @param {object} msg
47
+ * @returns {Promise<*>}
48
+ */
49
+ function resolveDebugValue(msg) {
50
+ if (node.targetType === "full" || node.targetType === "complete") {
51
+ return Promise.resolve(RED.util.cloneMessage(msg));
52
+ }
53
+
54
+ if (node.targetType === "msg" || node.targetType === "msgProperty") {
55
+ const property = node.complete || "payload";
56
+ try {
57
+ return Promise.resolve(RED.util.getMessageProperty(msg, property));
58
+ } catch (err) {
59
+ return Promise.reject(err);
60
+ }
61
+ }
62
+
63
+ return new Promise((resolve, reject) => {
64
+ const property = node.complete || "";
65
+ RED.util.evaluateNodeProperty(property, node.targetType, node, msg, (err, value) => {
66
+ if (err) {
67
+ reject(err);
68
+ } else {
69
+ resolve(value);
70
+ }
71
+ });
72
+ });
73
+ }
74
+
75
+ /**
76
+ * Emit to the configured outputs (sidebar/console).
77
+ * @param {object} msg
78
+ * @param {*} value
79
+ */
80
+ function handleDebugOutput(msg, value) {
81
+ const mode = node.clean ? "clean" : "full";
82
+ const preparedValue = sanitiseValue(value, { mode });
83
+
84
+ if (node.console) {
85
+ const consoleValue = node.clean ? preparedValue : value;
86
+ const formatted = formatForConsole(consoleValue);
87
+ node.log(formatted);
88
+ }
89
+
90
+ if (node.tosidebar !== false) {
91
+ publishToSidebar(msg, preparedValue);
92
+ }
93
+ }
94
+
95
+ /**
96
+ * Publish the debug payload to the editor sidebar.
97
+ * @param {object} msg
98
+ * @param {*} value
99
+ */
100
+ function publishToSidebar(msg, value) {
101
+ if (!RED.comms || typeof RED.comms.publish !== "function") {
102
+ return;
103
+ }
104
+
105
+ const format = detectValueType(value);
106
+ const debugMessage = {
107
+ id: node.id,
108
+ z: node.z,
109
+ _alias: node._alias,
110
+ name: node.name,
111
+ topic: msg && msg.topic,
112
+ property: node.targetType === "full" ? "msg" : node.complete,
113
+ propertyType: node.targetType,
114
+ clean: node.clean,
115
+ format,
116
+ msg: value,
117
+ _msgid: msg && msg._msgid
118
+ };
119
+
120
+ RED.comms.publish("debug", debugMessage);
121
+ }
122
+ }
123
+
124
+ /**
125
+ * Produce a lightweight clone that is safe to ship to the editor.
126
+ * @param {*} input
127
+ * @param {object} [options]
128
+ * @param {"clean"|"full"} [options.mode="clean"]
129
+ * @returns {*}
130
+ */
131
+ function sanitiseValue(input, options = {}) {
132
+ const mode = options.mode === "full" ? "full" : "clean";
133
+ const opts = {
134
+ maxDepth: options.maxDepth || 6,
135
+ maxArrayLength: options.maxArrayLength || (mode === "clean" ? 50 : 100),
136
+ maxObjectKeys: options.maxObjectKeys || (mode === "clean" ? 60 : 120),
137
+ maxStringLength: options.maxStringLength || (mode === "clean" ? 2048 : DEFAULT_DEBUG_MAX_LENGTH),
138
+ bufferPreviewLength: options.bufferPreviewLength || (mode === "clean" ? 0 : BUFFER_PREVIEW_BYTES),
139
+ mode
140
+ };
141
+
142
+ const seen = new WeakMap();
143
+
144
+ function helper(value, depth, path) {
145
+ if (value === null || value === undefined) {
146
+ return value;
147
+ }
148
+
149
+ const valueType = typeof value;
150
+ if (valueType === "number" || valueType === "boolean") {
151
+ return value;
152
+ }
153
+ if (valueType === "bigint") {
154
+ return `${value.toString()}n`;
155
+ }
156
+ if (valueType === "string") {
157
+ return sanitiseString(value, opts);
158
+ }
159
+ if (valueType === "symbol") {
160
+ return value.toString();
161
+ }
162
+ if (valueType === "function") {
163
+ return `[Function ${value.name || "anonymous"}]`;
164
+ }
165
+
166
+ if (Buffer.isBuffer(value)) {
167
+ return encodeBuffer(value, opts);
168
+ }
169
+ if (ArrayBuffer.isView(value) && !(value instanceof DataView)) {
170
+ return encodeTypedArray(value, opts);
171
+ }
172
+ if (value instanceof ArrayBuffer) {
173
+ return encodeTypedArray(new Uint8Array(value), opts);
174
+ }
175
+ if (value instanceof Date) {
176
+ return value.toISOString();
177
+ }
178
+ if (value instanceof RegExp) {
179
+ return value.toString();
180
+ }
181
+
182
+ if (typeof value === "object") {
183
+ if (seen.has(value)) {
184
+ return `[Circular ~${seen.get(value)}]`;
185
+ }
186
+ seen.set(value, path || "~");
187
+
188
+ if (value.type === "Buffer" && Array.isArray(value.data)) {
189
+ if (opts.mode === "clean") {
190
+ return createPlaceholder("Buffer", `${value.data.length} bytes`);
191
+ }
192
+ return encodeBuffer(Buffer.from(value.data), opts);
193
+ }
194
+
195
+ if (depth >= opts.maxDepth) {
196
+ if (Array.isArray(value)) {
197
+ return `[Array(${value.length})]`;
198
+ }
199
+ return `[Object with ${Object.keys(value).length} keys]`;
200
+ }
201
+
202
+ if (Array.isArray(value)) {
203
+ const result = [];
204
+ const len = Math.min(value.length, opts.maxArrayLength);
205
+ for (let i = 0; i < len; i += 1) {
206
+ const childPath = `${path || "~"}[${i}]`;
207
+ result.push(helper(value[i], depth + 1, childPath));
208
+ }
209
+ if (value.length > opts.maxArrayLength) {
210
+ result.push(`… ${value.length - opts.maxArrayLength} more items`);
211
+ }
212
+ return result;
213
+ }
214
+
215
+ const keys = Object.keys(value);
216
+ const clone = {};
217
+ const limit = Math.min(keys.length, opts.maxObjectKeys);
218
+
219
+ for (let i = 0; i < limit; i += 1) {
220
+ const key = keys[i];
221
+ const childPath = path ? `${path}.${key}` : key;
222
+ clone[key] = helper(value[key], depth + 1, childPath);
223
+ }
224
+
225
+ if (keys.length > opts.maxObjectKeys) {
226
+ clone.__cleanDebugTruncated = true;
227
+ clone.__cleanDebugNote = `${keys.length - opts.maxObjectKeys} more keys not shown`;
228
+ }
229
+
230
+ return clone;
231
+ }
232
+
233
+ return value;
234
+ }
235
+
236
+ return helper(input, 0, "");
237
+ }
238
+
239
+ /**
240
+ * Sanitise long/base64 strings with heuristics.
241
+ * @param {string} value
242
+ * @param {object} opts
243
+ */
244
+ function sanitiseString(value, opts) {
245
+ const trimmed = value.trim();
246
+ if (opts.mode === "clean" && trimmed.startsWith("data:image/")) {
247
+ return createPlaceholder("DataImage", `${value.length} chars`);
248
+ }
249
+
250
+ if (opts.mode === "clean" && isLikelyBase64(trimmed)) {
251
+ return createPlaceholder("Base64", `${value.length} chars`);
252
+ }
253
+
254
+ if (value.length > opts.maxStringLength) {
255
+ return `${value.slice(0, opts.maxStringLength)}… [truncated ${value.length - opts.maxStringLength} chars]`;
256
+ }
257
+ return value;
258
+ }
259
+
260
+ /**
261
+ * Encode a buffer so the UI can inspect it without loading all bytes.
262
+ * @param {Buffer} buffer
263
+ * @param {object} opts
264
+ */
265
+ function encodeBuffer(buffer, opts) {
266
+ if (opts.mode === "clean" || opts.bufferPreviewLength <= 0) {
267
+ return createPlaceholder("Buffer", `${buffer.length} bytes`);
268
+ }
269
+
270
+ const previewLength = Math.min(buffer.length, opts.bufferPreviewLength);
271
+ const slice = buffer.slice(0, previewLength).toJSON();
272
+ slice.length = buffer.length;
273
+ if (previewLength < buffer.length) {
274
+ slice.__cleanDebugTruncated = true;
275
+ slice.__cleanDebugNote = `${buffer.length - previewLength} more bytes not shown`;
276
+ }
277
+ return slice;
278
+ }
279
+
280
+ /**
281
+ * Encode typed arrays safely.
282
+ * @param {TypedArray} view
283
+ * @param {object} opts
284
+ */
285
+ function encodeTypedArray(view, opts) {
286
+ if (opts.mode === "clean") {
287
+ const ctor = view.constructor && view.constructor.name ? view.constructor.name : "TypedArray";
288
+ return createPlaceholder(ctor, `${view.length} items`);
289
+ }
290
+
291
+ const limit = Math.min(view.length, opts.maxArrayLength);
292
+ const data = [];
293
+ for (let i = 0; i < limit; i += 1) {
294
+ data.push(view[i]);
295
+ }
296
+ const descriptor = {
297
+ type: view.constructor && view.constructor.name ? view.constructor.name : "TypedArray",
298
+ length: view.length,
299
+ data
300
+ };
301
+ if (limit < view.length) {
302
+ descriptor.__cleanDebugTruncated = true;
303
+ descriptor.__cleanDebugNote = `${view.length - limit} more items not shown`;
304
+ }
305
+ return descriptor;
306
+ }
307
+
308
+ /**
309
+ * Detect base64-ish strings that are long enough to be heavy payloads.
310
+ * @param {string} value
311
+ */
312
+ function isLikelyBase64(value) {
313
+ if (value.length < 512) {
314
+ return false;
315
+ }
316
+ if (value.length % 4 !== 0) {
317
+ return false;
318
+ }
319
+ if (!/^[A-Za-z0-9+/=\s]+$/.test(value)) {
320
+ return false;
321
+ }
322
+ const paddingRatio = (value.match(/=/g) || []).length / value.length;
323
+ return paddingRatio < 0.1;
324
+ }
325
+
326
+ /**
327
+ * Generate placeholder string.
328
+ */
329
+ function createPlaceholder(type, detail) {
330
+ return `[${type} withheld: ${detail}]`;
331
+ }
332
+
333
+ /**
334
+ * Detect broad value type to help the editor render icons.
335
+ * @param {*} value
336
+ */
337
+ function detectValueType(value) {
338
+ if (value === null) {
339
+ return "null";
340
+ }
341
+ if (value && typeof value === "object" && value.type === "Buffer" && Array.isArray(value.data)) {
342
+ return "buffer";
343
+ }
344
+ const t = typeof value;
345
+ if (t === "string" || t === "number" || t === "boolean" || t === "bigint") {
346
+ return t;
347
+ }
348
+ if (Array.isArray(value)) {
349
+ return "array";
350
+ }
351
+ if (value instanceof Date) {
352
+ return "date";
353
+ }
354
+ return "object";
355
+ }
356
+
357
+ /**
358
+ * Format for console/log output.
359
+ * @param {*} value
360
+ */
361
+ function formatForConsole(value) {
362
+ return util.inspect(value, {
363
+ depth: 5,
364
+ maxArrayLength: 10,
365
+ breakLength: 120,
366
+ maxStringLength: DEFAULT_DEBUG_MAX_LENGTH
367
+ });
368
+ }
369
+
370
+ RED.nodes.registerType("clean-debug", CleanDebugNode);
371
+
372
+ RED.httpAdmin.post("/clean-debug/:id", RED.auth.needsPermission("flows.write"), function(req, res) {
373
+ const node = RED.nodes.getNode(req.params.id);
374
+ if (!node) {
375
+ res.sendStatus(404);
376
+ return;
377
+ }
378
+
379
+ if (typeof node.active === "undefined") {
380
+ node.active = true;
381
+ }
382
+
383
+ let desiredState;
384
+ if (req.body && Object.prototype.hasOwnProperty.call(req.body, "active")) {
385
+ desiredState = !!req.body.active;
386
+ } else {
387
+ desiredState = !node.active;
388
+ }
389
+ node.active = desiredState;
390
+
391
+ res.json({ active: node.active });
392
+ });
393
+ };
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "node-red-contrib-image-tools",
3
+ "version": "0.1.0",
4
+ "description": "C++ powered image processing nodes for Node-RED.",
5
+ "scripts": {
6
+ },
7
+ "keywords": [
8
+ "node-red",
9
+ "image",
10
+ "image-processing",
11
+ "opencv",
12
+ "computer-vision",
13
+ "image-alignment",
14
+ "ai-integration",
15
+ "high-performance"
16
+ ],
17
+ "author": {
18
+ "name": "Rosepetal"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
27
+ },
28
+ "engines": {
29
+ "node": ">=16.0"
30
+ },
31
+ "node-red": {
32
+ "nodes": {
33
+ "image-in": "nodes/io/image-in.js",
34
+ "folder-in": "nodes/io/folder-in.js",
35
+ "image-out": "nodes/io/image-out.js",
36
+ "array-in": "nodes/io/array-in.js",
37
+ "array-out": "nodes/io/array-out.js",
38
+ "array-select": "nodes/io/array-select.js",
39
+ "queue": "nodes/io/queue.js",
40
+ "save-file": "nodes/io/save-file.js",
41
+ "cropBB": "nodes/specialized/cropBB.js",
42
+ "image-align": "nodes/specialized/image-align.js",
43
+ "resize": "nodes/transform/resize.js",
44
+ "rotate": "nodes/transform/rotate.js",
45
+ "crop": "nodes/transform/crop.js",
46
+ "concat": "nodes/mix/concat.js",
47
+ "padding": "nodes/transform/padding.js",
48
+ "filter": "nodes/transform/filter.js",
49
+ "draw": "nodes/transform/draw.js",
50
+ "mosaic": "nodes/mix/mosaic.js",
51
+ "advanced-mosaic": "nodes/mix/advanced-mosaic.js",
52
+ "blend": "nodes/blend/blend.js",
53
+ "add-mask": "nodes/blend/add-mask.js",
54
+ "add-masks": "nodes/blend/add-masks.js",
55
+ "add-bbs": "nodes/blend/add-bbs.js",
56
+ "clean-debug": "nodes/util/clean-debug.js",
57
+ "block-detect": "nodes/util/block-detect.js"
58
+ }
59
+ },
60
+ "dependencies": {
61
+ "rosepetal-image-engine": "file:../rosepetal-image-engine",
62
+ "sharp": "^0.34.2"
63
+ }
64
+ }
@@ -0,0 +1 @@
1
+ # Placeholder - addon.node will be placed here by CI
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@rosepetal/node-red-contrib-image-tools-darwin-arm64",
3
+ "version": "1.1.3",
4
+ "description": "Prebuilt native binary for macOS ARM64 (Apple Silicon)",
5
+ "os": ["darwin"],
6
+ "cpu": ["arm64"],
7
+ "main": "lib/addon.node",
8
+ "files": ["lib/addon.node"],
9
+ "license": "Apache-2.0",
10
+ "author": "Rosepetal SL (https://www.rosepetal.ai)",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
17
+ },
18
+ "homepage": "https://github.com/rosepetal-ai/node-red-contrib-image-tools#readme",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "engines": {
23
+ "node": ">=16.0.0"
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ # Placeholder - addon.node will be placed here by CI
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@rosepetal/node-red-contrib-image-tools-darwin-x64",
3
+ "version": "1.1.3",
4
+ "description": "Prebuilt native binary for macOS x64 (Intel)",
5
+ "os": ["darwin"],
6
+ "cpu": ["x64"],
7
+ "main": "lib/addon.node",
8
+ "files": ["lib/addon.node"],
9
+ "license": "Apache-2.0",
10
+ "author": "Rosepetal SL (https://www.rosepetal.ai)",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
17
+ },
18
+ "homepage": "https://github.com/rosepetal-ai/node-red-contrib-image-tools#readme",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "engines": {
23
+ "node": ">=16.0.0"
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ # Placeholder - addon.node will be placed here by CI
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@rosepetal/node-red-contrib-image-tools-linux-arm64",
3
+ "version": "1.1.3",
4
+ "description": "Prebuilt native binary for Linux ARM64 (glibc)",
5
+ "os": ["linux"],
6
+ "cpu": ["arm64"],
7
+ "libc": ["glibc"],
8
+ "main": "lib/addon.node",
9
+ "files": ["lib/addon.node"],
10
+ "license": "Apache-2.0",
11
+ "author": "Rosepetal SL (https://www.rosepetal.ai)",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
18
+ },
19
+ "homepage": "https://github.com/rosepetal-ai/node-red-contrib-image-tools#readme",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "engines": {
24
+ "node": ">=16.0.0"
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ # Placeholder - addon.node will be placed here by CI
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@rosepetal/node-red-contrib-image-tools-linux-x64",
3
+ "version": "1.1.3",
4
+ "description": "Prebuilt native binary for Linux x64 (glibc)",
5
+ "os": ["linux"],
6
+ "cpu": ["x64"],
7
+ "libc": ["glibc"],
8
+ "main": "lib/addon.node",
9
+ "files": ["lib/addon.node"],
10
+ "license": "Apache-2.0",
11
+ "author": "Rosepetal SL (https://www.rosepetal.ai)",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
18
+ },
19
+ "homepage": "https://github.com/rosepetal-ai/node-red-contrib-image-tools#readme",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "engines": {
24
+ "node": ">=16.0.0"
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ # Placeholder - addon.node will be placed here by CI
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@rosepetal/node-red-contrib-image-tools-linuxmusl-x64",
3
+ "version": "1.1.3",
4
+ "description": "Prebuilt native binary for Linux x64 (musl/Alpine)",
5
+ "os": ["linux"],
6
+ "cpu": ["x64"],
7
+ "libc": ["musl"],
8
+ "main": "lib/addon.node",
9
+ "files": ["lib/addon.node"],
10
+ "license": "Apache-2.0",
11
+ "author": "Rosepetal SL (https://www.rosepetal.ai)",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
18
+ },
19
+ "homepage": "https://github.com/rosepetal-ai/node-red-contrib-image-tools#readme",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "engines": {
24
+ "node": ">=16.0.0"
25
+ }
26
+ }
@@ -0,0 +1 @@
1
+ # Placeholder - addon.node will be placed here by CI
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@rosepetal/rosepetal-engine-win32-x64",
3
+ "version": "1.0.1",
4
+ "description": "Prebuilt rosepetal-image-engine binary for Windows x64",
5
+ "os": ["win32"],
6
+ "cpu": ["x64"],
7
+ "main": "lib/addon.node",
8
+ "files": ["lib/addon.node"],
9
+ "license": "Apache-2.0",
10
+ "author": "Rosepetal SL <dev@rosepetal.ai> (https://www.rosepetal.ai)",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/rosepetal-ai/node-red-contrib-image-tools.git"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/rosepetal-ai/node-red-contrib-image-tools/issues"
17
+ },
18
+ "homepage": "https://github.com/rosepetal-ai/node-red-contrib-image-tools#readme",
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "engines": {
23
+ "node": ">=16.0.0"
24
+ }
25
+ }