From a4db0d051b18bc224c6cd69faeabf03cf5fba659 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 10 May 2022 10:47:37 +0200 Subject: [PATCH] fix(Edit Image Node): Make node work with binary-data-mode 'filesystem' (#3274) --- packages/nodes-base/nodes/EditImage/EditImage.node.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/EditImage/EditImage.node.ts b/packages/nodes-base/nodes/EditImage/EditImage.node.ts index 40f83f3cf7531..b5eff4169519a 100644 --- a/packages/nodes-base/nodes/EditImage/EditImage.node.ts +++ b/packages/nodes-base/nodes/EditImage/EditImage.node.ts @@ -1383,7 +1383,10 @@ export class EditImage implements INodeType { return reject(error); } - newItem.binary![dataPropertyName as string].data = (await this.helpers.prepareBinaryData(Buffer.from(buffer))).data; + const binaryData = await this.helpers.prepareBinaryData(Buffer.from(buffer)); + newItem.binary![dataPropertyName as string] = { + ...newItem.binary![dataPropertyName as string], ...binaryData + } return resolve(newItem); });