@acrewity/n8n-nodes-acrewity 0.1.7 → 0.1.8

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.
@@ -496,6 +496,7 @@ class Acrewity {
496
496
  { name: 'JPEG', value: 'jpeg' },
497
497
  { name: 'PNG', value: 'png' },
498
498
  { name: 'WebP', value: 'webp' },
499
+ { name: 'ICO', value: 'ico' },
499
500
  ],
500
501
  default: 'jpeg',
501
502
  },
@@ -503,10 +504,28 @@ class Acrewity {
503
504
  displayName: 'Quality',
504
505
  name: 'quality',
505
506
  type: 'number',
506
- displayOptions: { show: { resource: ['image_converter'] } },
507
+ displayOptions: { show: { resource: ['image_converter'], format: ['jpeg', 'png', 'webp'] } },
507
508
  default: 85,
508
509
  typeOptions: { minValue: 1, maxValue: 100 },
509
- description: 'Output quality (1-100)',
510
+ description: 'Output quality (1-100). Does not apply to ICO format.',
511
+ },
512
+ {
513
+ displayName: 'Width',
514
+ name: 'width',
515
+ type: 'number',
516
+ displayOptions: { show: { resource: ['image_converter'] } },
517
+ default: 0,
518
+ typeOptions: { minValue: 0 },
519
+ description: 'Output width in pixels (0 = keep original)',
520
+ },
521
+ {
522
+ displayName: 'Height',
523
+ name: 'height',
524
+ type: 'number',
525
+ displayOptions: { show: { resource: ['image_converter'] } },
526
+ default: 0,
527
+ typeOptions: { minValue: 0 },
528
+ description: 'Output height in pixels (0 = keep original)',
510
529
  },
511
530
  // ============ Excel to JSON ============
512
531
  {
@@ -963,7 +982,18 @@ class Acrewity {
963
982
  if (resource === 'image_converter') {
964
983
  parameters.imageUrl = this.getNodeParameter('imageUrl', i);
965
984
  parameters.format = this.getNodeParameter('format', i);
966
- parameters.quality = this.getNodeParameter('quality', i);
985
+ // Quality only applies to non-ICO formats
986
+ if (parameters.format !== 'ico') {
987
+ parameters.quality = this.getNodeParameter('quality', i);
988
+ }
989
+ const width = this.getNodeParameter('width', i);
990
+ const height = this.getNodeParameter('height', i);
991
+ if (width > 0) {
992
+ parameters.width = width;
993
+ }
994
+ if (height > 0) {
995
+ parameters.height = height;
996
+ }
967
997
  }
968
998
  // Excel to JSON
969
999
  if (resource === 'excel_to_json') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrewity/n8n-nodes-acrewity",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "n8n community node for Acrewity API - A unified API platform with 20+ utility services including PDF processing, data conversion, QR codes, and more",
5
5
  "license": "MIT",
6
6
  "homepage": "https://acrewity.com",