Skip to content

Commit

Permalink
fix(Edit Image Node): Make node work with binary-data-mode 'filesyste…
Browse files Browse the repository at this point in the history
…m' (#3274)
  • Loading branch information
janober authored May 10, 2022
1 parent b3dc6d9 commit a4db0d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/nodes-base/nodes/EditImage/EditImage.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit a4db0d0

Please sign in to comment.