0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Image → Overlay

AI-generated

Overview

This node operation overlays one image onto another. It takes URLs of a front image and a back image, along with optional parameters such as the position of the overlay and additional overlay options like opacity. The node processes these inputs to produce a combined image output, which can be returned as a URL or binary data depending on the settings. This operation is useful for scenarios like watermarking, branding, or combining images for visual effects.

Use Case Examples

  1. Overlay a company logo (front image) onto a product photo (back image) to create branded marketing materials.
  2. Combine a transparent PNG (front image) with a background image (back image) to create composite images for social media posts.

Properties

Name Meaning
Code Variables Variables defined in the code editor that can be used within the node's logic to dynamically influence the overlay operation.
Front Image URL URL of the front image to be overlaid on the back image.
Back Image URL URL of the back image onto which the front image will be overlaid.
Position Position of the overlay on the back image, e.g., center, top-left, bottom-right.
Options Overlay JSON object containing additional options for the overlay operation, such as opacity.
File Name Filename of the image to operate on, used for output naming.
Get File as URL Boolean flag indicating whether to get the resulting image as a URL.

Output

JSON

  • result - The resulting image after the overlay operation, typically returned as a URL or image data depending on settings.

Dependencies

  • An API key credential for the codeKit API service is required to perform the overlay operation.

Troubleshooting

  • Ensure that the frontImageUrl and backImageUrl are valid and accessible URLs; invalid URLs will cause the operation to fail.
  • The overlay options JSON must be correctly formatted; invalid JSON will cause errors.
  • If the node throws authentication errors, verify that the API key credential is correctly configured and has the necessary permissions.
  • If the output is not as expected, check the position and options parameters to ensure they are set correctly.

Discussion