From 94f2b2a26fca3987715e49352dd3e6f75b8bd6e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 8 Feb 2023 23:08:50 +0100 Subject: [PATCH] feat(Edit Image Node): Allow WebP as an image format (#5420) --- packages/nodes-base/nodes/EditImage/EditImage.node.ts | 4 ++++ packages/nodes-base/package.json | 4 ++-- pnpm-lock.yaml | 10 +++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/nodes-base/nodes/EditImage/EditImage.node.ts b/packages/nodes-base/nodes/EditImage/EditImage.node.ts index f5e45a3832..4eb26b73db 100644 --- a/packages/nodes-base/nodes/EditImage/EditImage.node.ts +++ b/packages/nodes-base/nodes/EditImage/EditImage.node.ts @@ -909,6 +909,10 @@ export class EditImage implements INodeType { name: 'tiff', value: 'tiff', }, + { + name: 'WebP', + value: 'webp', + }, ], default: 'jpeg', description: 'Set the output image format', diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 43db4411d4..c20b1ad061 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -736,7 +736,7 @@ "@types/eventsource": "^1.1.2", "@types/express": "^4.17.6", "@types/formidable": "^1.0.31", - "@types/gm": "^1.18.2", + "@types/gm": "^1.25.0", "@types/imap-simple": "^4.2.0", "@types/jsonwebtoken": "^9.0.1", "@types/lodash.set": "^4.3.6", @@ -776,7 +776,7 @@ "fflate": "^0.7.0", "formidable": "^1.2.1", "get-system-fonts": "^2.0.2", - "gm": "^1.23.1", + "gm": "^1.25.0", "iconv-lite": "^0.6.2", "ics": "^2.27.0", "imap-simple": "^4.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 177475a28e..49d4d9ce62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -747,7 +747,7 @@ importers: '@types/eventsource': ^1.1.2 '@types/express': ^4.17.6 '@types/formidable': ^1.0.31 - '@types/gm': ^1.18.2 + '@types/gm': ^1.25.0 '@types/imap-simple': ^4.2.0 '@types/js-nacl': ^1.3.0 '@types/jsonwebtoken': ^9.0.1 @@ -782,7 +782,7 @@ importers: fflate: ^0.7.0 formidable: ^1.2.1 get-system-fonts: ^2.0.2 - gm: ^1.23.1 + gm: ^1.25.0 gulp: ^4.0.0 iconv-lite: ^0.6.2 ics: ^2.27.0 @@ -895,7 +895,7 @@ importers: '@types/eventsource': 1.1.9 '@types/express': 4.17.14 '@types/formidable': 1.2.5 - '@types/gm': 1.18.12 + '@types/gm': 1.25.0 '@types/imap-simple': 4.2.5 '@types/jsonwebtoken': 9.0.1 '@types/lodash.set': 4.3.7 @@ -6062,8 +6062,8 @@ packages: '@types/node': 16.18.12 dev: true - /@types/gm/1.18.12: - resolution: {integrity: sha512-k3Gd15Ywy75FiFQUsrqpKD42rhMdHaETyw2zjK9u3xbrH1c7nS+npSb19yjPCqR8KxeL7vw2zJF4Kl2bAca0aQ==} + /@types/gm/1.25.0: + resolution: {integrity: sha512-y0nI4vp+0Vtsve+daADIHeSckm11TnWAdC4CBq2BEXTg+CfJiolnsnzsXeIEuIpBCksjN26LUZlvQKJDpthw5g==} dependencies: '@types/node': 16.18.12 dev: true