UNPKG

n8n-nodes-mallabe-images

Version:

n8n community node to alter images using Mallabe Images

145 lines 4.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resizeFields = void 0; exports.resizeFields = [ { displayName: 'Image URL', name: 'url', type: 'string', displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: '', description: 'Public URL of the image file to resize' }, { displayName: 'Resize Strategy', name: 'strategy', type: 'options', options: [ { name: 'Resize', value: 10, description: 'Keep proportions' }, { name: 'Resize Exact', value: 20, description: 'Use exact width and height' }, { name: 'Scale', value: 30, description: 'Scale width and height as percentage' }, ], default: 10, required: true, displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, description: 'Strategy to resize the image', }, { displayName: 'Width', name: 'width', type: 'number', displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: null, description: 'Width of the image. If `Resize Strategy` is `Scale`, this will be considered as a percentage.', }, { displayName: 'Height', name: 'height', type: 'number', displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: null, description: 'Height of the image. If `Resize Strategy` is `Scale`, this will be considered as a percentage.', }, { displayName: 'Remove Exif?', name: 'removeExif', type: 'boolean', default: false, displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, description: 'Whether to remove Exif data from the image', }, { displayName: 'Specify File Name', name: 'fileName', type: 'string', displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: '', description: 'Custom file name for the resized image', }, { displayName: 'Specify File Extension', name: 'fileExtension', type: 'string', displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: '', description: 'Custom file extension for the resized image', }, { displayName: 'Download Image?', name: 'download', type: 'boolean', required: true, displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: false, description: 'Whether to download the Image or return a link to it', }, { displayName: 'Put Output File In Field', name: 'output', type: 'string', required: true, displayOptions: { show: { operation: ['resize'], resource: ['image'], download: [true], }, }, default: 'data', description: 'The name of the output field to put the binary file data in', }, { displayName: 'Webhook URL (Advanced)', name: 'webhookUrl', type: 'string', displayOptions: { show: { operation: ['resize'], resource: ['image'], }, }, default: '', description: 'URL to send a webhook with the data of the operation', }, ]; //# sourceMappingURL=ResizeOperation.js.map