n8n-nodes-sudomock 0.1.4 → 0.2.0
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.
|
@@ -327,6 +327,17 @@ class SudoMock {
|
|
|
327
327
|
default: 95,
|
|
328
328
|
description: 'Quality for JPG/WebP output (1-100)',
|
|
329
329
|
},
|
|
330
|
+
{
|
|
331
|
+
displayName: 'DPI',
|
|
332
|
+
name: 'dpi',
|
|
333
|
+
type: 'number',
|
|
334
|
+
typeOptions: {
|
|
335
|
+
minValue: 72,
|
|
336
|
+
maxValue: 2400,
|
|
337
|
+
},
|
|
338
|
+
default: 300,
|
|
339
|
+
description: 'Print resolution 72-2400. Embeds a resolution tag in output metadata (JPEG/PNG/WebP). Does not change pixel count, image_size controls that (for a true print file: image_size = print inches x dpi). jpg/png recommended for max compatibility. Leave unset for web mockups.',
|
|
340
|
+
},
|
|
330
341
|
{
|
|
331
342
|
displayName: 'Export Label',
|
|
332
343
|
name: 'exportLabel',
|
|
@@ -586,6 +597,9 @@ class SudoMock {
|
|
|
586
597
|
if (exportOptions.quality) {
|
|
587
598
|
expOpts.quality = exportOptions.quality;
|
|
588
599
|
}
|
|
600
|
+
if (exportOptions.dpi) {
|
|
601
|
+
expOpts.dpi = exportOptions.dpi;
|
|
602
|
+
}
|
|
589
603
|
if (Object.keys(expOpts).length > 0) {
|
|
590
604
|
body.export_options = expOpts;
|
|
591
605
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-sudomock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "n8n community node for SudoMock mockup rendering API - POD automation",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://sudomock.com",
|
|
7
7
|
"bugs": {
|
|
8
8
|
"url": "https://github.com/sudomock/n8n-nodes-sudomock/issues"
|
|
9
9
|
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public",
|
|
12
|
+
"provenance": true
|
|
13
|
+
},
|
|
10
14
|
"author": {
|
|
11
15
|
"name": "SudoMock",
|
|
12
16
|
"email": "hello@sudomock.com"
|