ComfyUI > Nodes > ComfyUI-YCNodes > Image Blend Resize

ComfyUI Node: Image Blend Resize

Class Name

ImageBlendResize

Category
YCNode/Image
Author
yichengup (Account age: 473days)
Extension
ComfyUI-YCNodes
Latest Updated
2025-06-03
Github Stars
0.02K

How to Install ComfyUI-YCNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-YCNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-YCNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Image Blend Resize Description

Versatile image blending and resizing tool with precise control over overlay, blend modes, resizing, positioning, rotation, and opacity.

Image Blend Resize:

The ImageBlendResize node is a versatile tool designed to blend and resize images with precision and flexibility. It allows you to overlay a layer image onto a background image, offering various blend modes to achieve different visual effects. The node provides options to resize the layer image according to specific modes, such as containing or covering the background, and allows for precise positioning and scaling. Additionally, you can rotate the layer image and adjust its opacity, giving you full control over the final composition. This node is particularly useful for creating complex image compositions where the alignment and blending of multiple images are crucial.

Image Blend Resize Input Parameters:

background_image

The background_image parameter is the base image onto which the layer image will be blended. It serves as the canvas for the composition.

layer_image

The layer_image parameter is the image that will be overlaid onto the background image. This image can be resized, repositioned, and blended according to the specified settings.

blend_mode

The blend_mode parameter determines how the layer image is blended with the background image. Options include modes like normal, multiply, screen, and overlay, each providing a different visual effect.

resize_mode

The resize_mode parameter specifies how the layer image should be resized relative to the background image. Options include contain, cover, fix_width, and fix_height, allowing for different scaling strategies.

scale

The scale parameter adjusts the size of the layer image as a percentage of its original size. It ranges from 1.0 to 400.0, with a default of 100.0, allowing for both reduction and enlargement.

x_pos

The x_pos parameter sets the horizontal position of the layer image on the background, expressed as a percentage of the available space. It ranges from 0.0 to 100.0, with a default of 50.0.

y_pos

The y_pos parameter sets the vertical position of the layer image on the background, expressed as a percentage of the available space. It ranges from 0.0 to 100.0, with a default of 50.0.

rotation

The rotation parameter allows you to rotate the layer image by a specified angle, ranging from -180.0 to 180.0 degrees, with a default of 0.0.

opacity

The opacity parameter controls the transparency of the layer image, ranging from 0 (completely transparent) to 100 (completely opaque), with a default of 100.

invert_mask

The invert_mask parameter is a boolean option that, when enabled, inverts the mask applied to the layer image, affecting how it blends with the background.

layer_mask

The layer_mask parameter is an optional mask that can be applied to the layer image, allowing for more complex blending effects.

fixed_width

The fixed_width parameter is an optional setting that specifies a fixed width for the layer image when using the fix_width resize mode. It ranges from 1 to 4096, with a default of 512.

fixed_height

The fixed_height parameter is an optional setting that specifies a fixed height for the layer image when using the fix_height resize mode. It ranges from 1 to 4096, with a default of 512.

Image Blend Resize Output Parameters:

image

The image output parameter is the final blended and resized image resulting from the node's operations. It reflects all the adjustments made through the input parameters, providing a composite image ready for further processing or display.

Image Blend Resize Usage Tips:

  • Experiment with different blend_mode settings to achieve unique visual effects that suit your artistic vision.
  • Use the scale parameter to fine-tune the size of the layer image, ensuring it fits well within the background without losing important details.
  • Adjust the x_pos and y_pos parameters to precisely position the layer image, especially when aligning it with specific elements in the background.

Image Blend Resize Common Errors and Solutions:

"Invalid blend mode"

  • Explanation: The specified blend mode is not recognized by the node.
  • Solution: Ensure that the blend mode is one of the supported options like normal, multiply, screen, or overlay.

"Image size exceeds limits"

  • Explanation: The resized image dimensions exceed the maximum allowed size.
  • Solution: Adjust the scale, fixed_width, or fixed_height parameters to reduce the image size within acceptable limits.

"Invalid position values"

  • Explanation: The x_pos or y_pos values are outside the valid range.
  • Solution: Ensure that the position values are between 0.0 and 100.0 to correctly position the layer image.

Image Blend Resize Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-YCNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.