ComfyUI > Nodes > comfy_Pond_Nodes > 🐳裁ε‰ͺθ΄΄ε›ž

ComfyUI Node: 🐳裁ε‰ͺθ΄΄ε›ž

Class Name

CropPasteBack

Category
🐳Pond/bbox
Author
Pondowner857 (Account age: 730days)
Extension
comfy_Pond_Nodes
Latest Updated
2026-01-28
Github Stars
0.04K

How to Install comfy_Pond_Nodes

Install this extension via the ComfyUI Manager by searching for comfy_Pond_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfy_Pond_Nodes 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

🐳裁ε‰ͺθ΄΄ε›ž Description

Reintegrates cropped images into backgrounds, supporting various crop data formats for seamless blending.

🐳裁ε‰ͺθ΄΄ε›ž:

The CropPasteBack node is designed to facilitate the process of reintegrating a cropped image back into its original or a different background. This node is particularly useful in scenarios where you need to manipulate images by extracting a portion and then pasting it back, possibly after some modifications. The node intelligently handles various data types for specifying the crop area, ensuring flexibility and ease of use. It supports different formats for crop data, such as dictionaries, lists, tuples, and strings, making it adaptable to various input sources. The primary goal of this node is to seamlessly blend the cropped image back into the background using a mask, which allows for smooth transitions and realistic compositions. This capability is essential for AI artists who want to create complex image manipulations without manually handling the intricacies of image dimensions and blending.

🐳裁ε‰ͺθ΄΄ε›ž Input Parameters:

background

The background parameter is the image onto which the cropped image will be pasted. It serves as the canvas for the final composition. This parameter must be an image type and is crucial as it determines the context and environment in which the cropped image will be reintegrated. There are no specific minimum or maximum values, but the image should be of a suitable resolution to accommodate the cropped image.

cropped

The cropped parameter represents the image segment that has been extracted and is intended to be pasted back onto the background. This parameter must also be an image type. The size and content of the cropped image will directly affect the final output, as it determines what portion of the image is being manipulated and reintegrated.

mask

The mask parameter is used to define the area of the cropped image that should be visible when pasted back onto the background. It is a crucial component for blending, as it allows for smooth transitions between the cropped image and the background. The mask should match the dimensions of the cropped image and is typically a binary image where the white areas represent the visible parts of the cropped image.

crop_data

The crop_data parameter specifies the coordinates of the crop area. It supports multiple data types, including box, crop data, bounding box, rectangle, coordinates, list, tuple, dictionary, integer, float, and string. This flexibility allows users to input crop data in the format that best suits their workflow. The node intelligently parses this data to determine the exact area to be cropped and pasted, ensuring accurate placement and sizing.

🐳裁ε‰ͺθ΄΄ε›ž Output Parameters:

image

The image output parameter is the final composite image resulting from the operation. It is an image type that represents the background with the cropped image pasted back onto it, blended according to the mask. This output is crucial for AI artists as it provides the completed visual composition, ready for further processing or final use.

🐳裁ε‰ͺθ΄΄ε›ž Usage Tips:

  • Ensure that the mask parameter is correctly aligned with the cropped image to achieve seamless blending with the background.
  • Utilize the flexibility of the crop_data parameter by providing coordinates in the format that is most convenient for your workflow, whether it be a list, tuple, or string.
  • Experiment with different mask designs to create unique blending effects and enhance the visual appeal of the final image.

🐳裁ε‰ͺθ΄΄ε›ž Common Errors and Solutions:

Warning: Unknown crop_data type

  • Explanation: This warning occurs when the crop_data provided is of an unrecognized type that the node cannot parse.
  • Solution: Ensure that the crop_data is in one of the supported formats, such as a dictionary, list, tuple, or string, and that it contains valid coordinate information.

ValueError in crop_data parsing

  • Explanation: This error arises when the crop_data string cannot be converted into integers, possibly due to incorrect formatting or non-numeric values.
  • Solution: Verify that the crop_data string is correctly formatted with numeric values separated by commas, and ensure there are no extraneous characters or spaces.

🐳裁ε‰ͺθ΄΄ε›ž Related Nodes

Go back to the extension to check out more related nodes.
comfy_Pond_Nodes
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 Models, enabling artists to harness the latest AI tools to create incredible art.