ComfyUI  >  Nodes  >  WAS Node Suite >  Image Paste Crop

ComfyUI Node: Image Paste Crop

Class Name

Image Paste Crop

Category
WAS Suite/Image/Process
Author
WASasquatch (Account age: 4688 days)
Extension
WAS Node Suite
Latest Updated
8/25/2024
Github Stars
1.1K

How to Install WAS Node Suite

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

Image Paste Crop Description

Integrate cropped image sections seamlessly for precise blending and placement in creative projects.

Image Paste Crop:

The Image Paste Crop node is designed to seamlessly integrate a cropped section of an image into another image, allowing for precise control over the placement and blending of the cropped area. This node is particularly useful for tasks such as compositing, where you need to merge different parts of images together while maintaining a natural look. The node provides options to adjust the blending and sharpening of the cropped image, ensuring that the final result is smooth and visually appealing. By using this node, you can enhance your creative projects with more complex and refined image manipulations.

Image Paste Crop Input Parameters:

image

This parameter represents the base image onto which the cropped image will be pasted. It is the primary canvas for the operation.

crop_image

This parameter is the image that will be cropped and then pasted onto the base image. It is essential for defining the content that will be integrated into the base image.

top

This parameter specifies the top coordinate for the placement of the cropped image on the base image. It determines the vertical starting point of the crop. The default value is 0.

left

This parameter specifies the left coordinate for the placement of the cropped image on the base image. It determines the horizontal starting point of the crop. The default value is 0.

This parameter specifies the right coordinate for the placement of the cropped image on the base image. It determines the horizontal ending point of the crop. The default value is 256.

bottom

This parameter specifies the bottom coordinate for the placement of the cropped image on the base image. It determines the vertical ending point of the crop. The default value is 256.

blend_amount

This parameter controls the amount of blending between the cropped image and the base image. A higher value results in a smoother transition between the images. The default value is 0.25.

sharpen_amount

This parameter determines the amount of sharpening applied to the cropped image before it is pasted onto the base image. A higher value results in a sharper cropped image. The default value is 1.

Image Paste Crop Output Parameters:

blended_image

This output parameter is the final image with the cropped section pasted onto the base image. It includes all the blending and sharpening adjustments made during the process.

blended_mask

This output parameter is the mask used for blending the cropped image with the base image. It helps in understanding the blending areas and can be useful for further image processing tasks.

Image Paste Crop Usage Tips:

  • Adjust the blend_amount parameter to achieve a smoother transition between the cropped image and the base image, especially when dealing with complex backgrounds.
  • Use the sharpen_amount parameter to enhance the details of the cropped image, making it stand out more prominently in the final composition.
  • Experiment with different top, left, right, and bottom values to precisely control the placement of the cropped image on the base image.

Image Paste Crop Common Errors and Solutions:

"Image dimensions do not match"

  • Explanation: This error occurs when the dimensions of the cropped image do not match the expected size for pasting onto the base image.
  • Solution: Ensure that the cropped image is resized correctly before pasting it onto the base image. Use the crop_size parameter to adjust the dimensions.

"Invalid blend amount"

  • Explanation: This error occurs when the blend_amount parameter is set to a value outside the acceptable range.
  • Solution: Set the blend_amount parameter to a value between 0 and 1 to ensure proper blending.

"Invalid sharpen amount"

  • Explanation: This error occurs when the sharpen_amount parameter is set to a negative value or a value that is too high.
  • Solution: Set the sharpen_amount parameter to a positive value, and avoid excessively high values to prevent over-sharpening.

Image Paste Crop Related Nodes

Go back to the extension to check out more related nodes.
WAS Node Suite
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.