← All N8N workflows
Media & contentCodeEdit ImageHTTP RequestManual TriggerMerge

Retrieve the Background Image and fetch Meta from the File

Configured with Edit Image, HTTP Request. Review the connections and setup before adapting this template.

Workflow preview
TriggerWhen clicking "Testworkflow"Manual TriggerFiles / mediaGet Meta BGEdit ImageTransformNest Top MetaEdit FieldsTransformNest Bg MetaEdit FieldsCodeCalculate CenterCodeWeb / APIGet Logo for theWatermarkHTTP RequestWeb / APIGet the Image forBackgroundHTTP RequestTransformWait for both Imagesand merge Binary in one…MergeCodeRename Image Binary TopImageCodeCodeRename Image BinaryBackground ImageCodeFiles / mediaGet Meta TopEdit ImageFiles / mediaLet "top" overlay "bg"Edit Image

Node categories in this workflow

  • Trigger
  • Files / media
  • Transform
  • Code
  • Web / API

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
When clicking "Test workflow"TriggerManual TriggerSee node parameters
Get Meta BGFiles / mediaEdit Imageinformation
Nest Top MetaTransformEdit FieldsSee node parameters
Nest Bg MetaTransformEdit FieldsSee node parameters
Calculate CenterCodeCodeSee node parameters
Get Logo for the WatermarkWeb / APIHTTP RequestSee node parameters
Get the Image for BackgroundWeb / APIHTTP RequestSee node parameters
Wait for both Images and merge Binary in one ItemTransformMergeSee node parameters
Rename Image Binary Top ImageCodeCodeSee node parameters
Rename Image Binary Background ImageCodeCodeSee node parameters
Get Meta TopFiles / mediaEdit Imageinformation
Let "top" overlay "bg"Files / mediaEdit Imagecomposite

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

Calculate the Position for the "Top" Image

Calculate the Position for the "Top" Image

We want to place the "Top"-Image it dead-center on the "Background"-Image. But the upper-left-corner is the origin for the operation.

You may adjust it to your needs, to – for example adjust the size of your Overlay-Image, or place it in some corner. Adjust the Formular to your needs.

⚠️ Limitation: The Image that Overlays the Background-Image has to be <= the size of the background image to work properly.

Instructions

Instructions

This automation overlays a background image with another image, making it easy to add watermarks or logos.

You can use this automation to watermark your images by overlaying them with a transparent version of your logo. If you'd like to place your logo in a specific corner, feel free to adjust the position of the overlay image in the code node.

How it Works

  1. Both images are downloaded, so we can process binary files (you can modify the source, tho.)
  2. We extract metadata, focusing on the dimensions of each image.
  3. The position of the overlay image is calculated (default: dead center of the background image).
  4. The two images are composited together.

Limitations and Optimization Opportunities

  1. The overlay image must be the same size or smaller than the background image for proper alignment.
  2. The overlay image does not automatically scale to match the proportions of the background image.


Enjoy the workflow! ❤️
let the workf low — Workflow Automation & Development

Retrieve the Background Image and fetch Meta from the File

Retrieve the Background Image and fetch Meta from the File

Purpose and structure

This folder contains the Retrieve the Background Image and fetch Meta from the File workflow. Its executable nodes use code, editImage, httpRequest, manualTrigger, merge, set. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

When clicking "Test workflow"

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/0598_Code_Editimage_Update_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Retrieve the Background Image and fetch Meta from the File
  • 🖼️ Binary Property *bg* should now be the composite image and be overlayed by *top*

More in Media & content