I am trying to very simply use one template image on top of which I want to automatically add a file that has just been uploaded on a folder.
Both images are being taken from Google Drive.
I merge the results of the two google drive files and input it on Edit Image node.
On the Edit Image node I can’t seem to access the second image, as both of them have “data” as their binary name. I can’t seem to change that and I can’t see to figure out how to access the binaries through the expression. Please help
Btw i managed to composite the first image over the first image (over itself) which means I am doing something right.
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Here are a few tweaks to make your workflow work as expected:
In the “New File” and “Template” Drive nodes you can add the “Put Output File in Field” option to rename the binary field where the image will be added. So you can have two different field names
In the Merge node you can select “Mode → Combine” and “Combination Mode → Combine by position”. In this way, the binary files are added to the same item. All data in n8n is passed across nodes in multiple items, and if you use Append, the binary files will end up in different items and it’s more difficult to use them together.
Then in the “Edit Image1” node you just have to use the right binary files fields and it will work.