ComfyUI > Nodes > GraftingRayman > GR Image Paste With Mask

ComfyUI Node: GR Image Paste With Mask

Class Name

GR Image Paste With Mask

Category
GraftingRayman\Images
Author
GraftingRayman (Account age: 193days)
Extension
GraftingRayman
Latest Updated
2024-07-23
Github Stars
0.03K

How to Install GraftingRayman

Install this extension via the ComfyUI Manager by searching for GraftingRayman
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter GraftingRayman 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

GR Image Paste With Mask Description

Overlay images with transparency and blending using masks for creative compositing control.

GR Image Paste With Mask:

The GR Image Paste With Mask node is designed to seamlessly overlay one image onto another using a mask to control the transparency and blending of the overlay. This node is particularly useful for AI artists who want to combine multiple images creatively while maintaining control over how the images blend together. By using a mask, you can specify which parts of the overlay image should be visible and how they should blend with the background image. This node supports various customization options, including opacity, positioning, fitting, and blending methods, allowing for precise control over the final composite image. The main goal of this node is to provide a flexible and powerful tool for image compositing, enabling you to create complex and visually appealing artworks with ease.

GR Image Paste With Mask Input Parameters:

background_image

The background image onto which the overlay image will be pasted. This image serves as the base layer of the composite.

overlay_image

The image that will be overlaid onto the background image. This image will be blended with the background based on the mask and other parameters.

mask_image

The mask image that controls the transparency of the overlay image. The mask determines which parts of the overlay image are visible and how they blend with the background.

opacity

Controls the overall transparency of the overlay image. A value of 1.0 means fully opaque, while 0.0 means fully transparent. Default is 1.0.

overlay_x

The x-coordinate position where the overlay image will be placed on the background image. This allows you to position the overlay image horizontally.

overlay_y

The y-coordinate position where the overlay image will be placed on the background image. This allows you to position the overlay image vertically.

overlay_fit

Determines how the overlay image should fit within the specified area. Options include "stretch", "contain", and "cover".

mask_x

The x-coordinate position where the mask image will be placed on the background image. This allows you to position the mask image horizontally.

mask_y

The y-coordinate position where the mask image will be placed on the background image. This allows you to position the mask image vertically.

mask_fit

Determines how the mask image should fit within the specified area. Options include "stretch", "contain", and "cover".

mask_zoom

Controls the zoom level of the mask image. A higher value zooms in on the mask, while a lower value zooms out.

mask_stretch_x

Controls the horizontal stretching of the mask image. A value greater than 1.0 stretches the mask horizontally.

mask_stretch_y

Controls the vertical stretching of the mask image. A value greater than 1.0 stretches the mask vertically.

outline

Enables or disables the outline around the masked area. This can be used to highlight the edges of the overlay image.

outline_thickness

Specifies the thickness of the outline around the masked area. A higher value results in a thicker outline.

outline_colour

Specifies the color of the outline around the masked area. This can be any valid color value.

outline_opacity

Controls the transparency of the outline. A value of 1.0 means fully opaque, while 0.0 means fully transparent.

outline_position

Determines the position of the outline relative to the masked area. Options include "inside", "outside", and "center".

blend

Enables or disables blending of the overlay image with the background image. Blending can create smoother transitions between images.

blend_method

Specifies the method used for blending the overlay image with the background image. Options include "normal", "multiply", "screen", and others.

blend_strength

Controls the strength of the blending effect. A higher value results in a stronger blend.

blend_area

Specifies the area where blending should occur. Options include "inside" and "outside".

GR Image Paste With Mask Output Parameters:

output_image

The final composite image resulting from the overlay of the overlay image onto the background image using the specified mask and parameters. This image is the result of all the applied transformations, blending, and masking.

GR Image Paste With Mask Usage Tips:

  • Experiment with different mask images to achieve various transparency effects and blending results.
  • Use the opacity parameter to fine-tune the visibility of the overlay image.
  • Adjust the blend_method and blend_strength to create unique blending effects that enhance your artwork.
  • Utilize the outline feature to highlight the edges of the overlay image, making it stand out more.

GR Image Paste With Mask Common Errors and Solutions:

"Invalid mask image format"

  • Explanation: The mask image provided is not in a valid format or is corrupted.
  • Solution: Ensure that the mask image is a valid image file and is not corrupted. Try using a different mask image.

"Overlay image out of bounds"

  • Explanation: The specified position for the overlay image places it outside the bounds of the background image.
  • Solution: Adjust the overlay_x and overlay_y parameters to position the overlay image within the bounds of the background image.

"Unsupported blend method"

  • Explanation: The specified blend method is not supported by the node.
  • Solution: Use a supported blend method such as "normal", "multiply", or "screen". Check the documentation for a list of supported blend methods.

GR Image Paste With Mask Related Nodes

Go back to the extension to check out more related nodes.
GraftingRayman
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.