n8n-nodes-supermachine 1.1.5 → 1.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.
|
@@ -74,10 +74,10 @@ exports.getImageFields = [
|
|
|
74
74
|
description: 'Model AI dùng để generate ảnh. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
75
75
|
required: true,
|
|
76
76
|
},
|
|
77
|
-
// Image
|
|
77
|
+
// Image Size (merged)
|
|
78
78
|
{
|
|
79
|
-
displayName: 'Image
|
|
80
|
-
name: '
|
|
79
|
+
displayName: 'Image Size',
|
|
80
|
+
name: 'imageSize',
|
|
81
81
|
type: 'options',
|
|
82
82
|
displayOptions: {
|
|
83
83
|
show: {
|
|
@@ -86,32 +86,20 @@ exports.getImageFields = [
|
|
|
86
86
|
},
|
|
87
87
|
},
|
|
88
88
|
options: [
|
|
89
|
-
{ name: '1:1
|
|
90
|
-
{ name: '
|
|
91
|
-
{ name: '
|
|
92
|
-
{ name: '4
|
|
93
|
-
{ name: '16
|
|
94
|
-
{ name: '
|
|
89
|
+
{ name: '1024×1024 (1:1 Square)', value: '1024x1024' },
|
|
90
|
+
{ name: '1280×1280 (1:1 Square)', value: '1280x1280' },
|
|
91
|
+
{ name: '768×1024 (3:4 Portrait)', value: '768x1024' },
|
|
92
|
+
{ name: '884×1184 (3:4 Portrait)', value: '884x1184' },
|
|
93
|
+
{ name: '576×1024 (9:16 Vertical)', value: '576x1024' },
|
|
94
|
+
{ name: '720×1280 (9:16 Vertical)', value: '720x1280' },
|
|
95
|
+
{ name: '1024×768 (4:3 Landscape)', value: '1024x768' },
|
|
96
|
+
{ name: '1184×884 (4:3 Landscape)', value: '1184x884' },
|
|
97
|
+
{ name: '1024×576 (16:9 Widescreen)', value: '1024x576' },
|
|
98
|
+
{ name: '1280×720 (16:9 Widescreen)', value: '1280x720' },
|
|
99
|
+
{ name: 'Custom', value: 'custom' },
|
|
95
100
|
],
|
|
96
|
-
default: '
|
|
97
|
-
description: '
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
displayName: 'Size Preset',
|
|
101
|
-
name: 'sizePreset',
|
|
102
|
-
type: 'options',
|
|
103
|
-
displayOptions: {
|
|
104
|
-
show: {
|
|
105
|
-
resource: ['image'],
|
|
106
|
-
operation: ['generate'],
|
|
107
|
-
imageRatio: ['1:1', '3:4', '9:16', '4:3', '16:9'],
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
typeOptions: {
|
|
111
|
-
loadOptionsMethod: 'getSizePresets',
|
|
112
|
-
},
|
|
113
|
-
default: '',
|
|
114
|
-
description: 'Pre-defined sizes for selected ratio. Width and height will auto-fill.',
|
|
101
|
+
default: '1024x1024',
|
|
102
|
+
description: 'Select image dimensions',
|
|
115
103
|
},
|
|
116
104
|
{
|
|
117
105
|
displayName: 'Prompt',
|
|
@@ -143,7 +131,7 @@ exports.getImageFields = [
|
|
|
143
131
|
show: {
|
|
144
132
|
resource: ['image'],
|
|
145
133
|
operation: ['generate'],
|
|
146
|
-
|
|
134
|
+
imageSize: ['custom'],
|
|
147
135
|
},
|
|
148
136
|
},
|
|
149
137
|
default: 1024,
|
|
@@ -161,7 +149,7 @@ exports.getImageFields = [
|
|
|
161
149
|
show: {
|
|
162
150
|
resource: ['image'],
|
|
163
151
|
operation: ['generate'],
|
|
164
|
-
|
|
152
|
+
imageSize: ['custom'],
|
|
165
153
|
},
|
|
166
154
|
},
|
|
167
155
|
default: 768,
|
|
@@ -470,10 +458,10 @@ exports.getImageFields = [
|
|
|
470
458
|
required: true,
|
|
471
459
|
description: 'AI model to use for image generation',
|
|
472
460
|
},
|
|
473
|
-
// Image
|
|
461
|
+
// Image Size v3 (merged)
|
|
474
462
|
{
|
|
475
|
-
displayName: 'Image
|
|
476
|
-
name: '
|
|
463
|
+
displayName: 'Image Size',
|
|
464
|
+
name: 'imageSizeV3',
|
|
477
465
|
type: 'options',
|
|
478
466
|
displayOptions: {
|
|
479
467
|
show: {
|
|
@@ -482,32 +470,20 @@ exports.getImageFields = [
|
|
|
482
470
|
},
|
|
483
471
|
},
|
|
484
472
|
options: [
|
|
485
|
-
{ name: '1:1
|
|
486
|
-
{ name: '
|
|
487
|
-
{ name: '
|
|
488
|
-
{ name: '4
|
|
489
|
-
{ name: '16
|
|
490
|
-
{ name: '
|
|
473
|
+
{ name: '1024×1024 (1:1 Square)', value: '1024x1024' },
|
|
474
|
+
{ name: '1280×1280 (1:1 Square)', value: '1280x1280' },
|
|
475
|
+
{ name: '768×1024 (3:4 Portrait)', value: '768x1024' },
|
|
476
|
+
{ name: '884×1184 (3:4 Portrait)', value: '884x1184' },
|
|
477
|
+
{ name: '576×1024 (9:16 Vertical)', value: '576x1024' },
|
|
478
|
+
{ name: '720×1280 (9:16 Vertical)', value: '720x1280' },
|
|
479
|
+
{ name: '1024×768 (4:3 Landscape)', value: '1024x768' },
|
|
480
|
+
{ name: '1184×884 (4:3 Landscape)', value: '1184x884' },
|
|
481
|
+
{ name: '1024×576 (16:9 Widescreen)', value: '1024x576' },
|
|
482
|
+
{ name: '1280×720 (16:9 Widescreen)', value: '1280x720' },
|
|
483
|
+
{ name: 'Custom', value: 'custom' },
|
|
491
484
|
],
|
|
492
|
-
default: '
|
|
493
|
-
description: '
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
displayName: 'Size Preset',
|
|
497
|
-
name: 'sizePresetV3',
|
|
498
|
-
type: 'options',
|
|
499
|
-
displayOptions: {
|
|
500
|
-
show: {
|
|
501
|
-
resource: ['image'],
|
|
502
|
-
operation: ['generateV3'],
|
|
503
|
-
imageRatioV3: ['1:1', '3:4', '9:16', '4:3', '16:9'],
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
typeOptions: {
|
|
507
|
-
loadOptionsMethod: 'getSizePresetsV3',
|
|
508
|
-
},
|
|
509
|
-
default: '',
|
|
510
|
-
description: 'Pre-defined sizes for selected ratio. Width and height will auto-fill.',
|
|
485
|
+
default: '576x1024',
|
|
486
|
+
description: 'Select image dimensions',
|
|
511
487
|
},
|
|
512
488
|
{
|
|
513
489
|
displayName: 'Prompt',
|
|
@@ -539,7 +515,7 @@ exports.getImageFields = [
|
|
|
539
515
|
show: {
|
|
540
516
|
resource: ['image'],
|
|
541
517
|
operation: ['generateV3'],
|
|
542
|
-
|
|
518
|
+
imageSizeV3: ['custom'],
|
|
543
519
|
},
|
|
544
520
|
},
|
|
545
521
|
default: 576,
|
|
@@ -557,7 +533,7 @@ exports.getImageFields = [
|
|
|
557
533
|
show: {
|
|
558
534
|
resource: ['image'],
|
|
559
535
|
operation: ['generateV3'],
|
|
560
|
-
|
|
536
|
+
imageSizeV3: ['custom'],
|
|
561
537
|
},
|
|
562
538
|
},
|
|
563
539
|
default: 1024,
|
package/package.json
CHANGED