Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-CustomNodePacks > Inpaint Paste Back — legacy (C2C)

ComfyUI Node: Inpaint Paste Back — legacy (C2C)

Class Name

InpaintPasteBackMEC

Category
C2C/Inpaint
Author
Code2Collapse (Account age: 1184days)
Extension
ComfyUI-CustomNodePacks
Latest Updated
2026-07-29
Github Stars
0.05K

How to Install ComfyUI-CustomNodePacks

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

Inpaint Paste Back — legacy (C2C) Description

Seamlessly integrate inpainted crop back with specified dictionary, resize, alpha-paste, Gaussian-feathered edges, no blending artifacts.

Inpaint Paste Back — legacy (C2C):

The InpaintPasteBackMEC node is designed to seamlessly integrate an inpainted crop back into its original image using a specified STITCHER dictionary. This node focuses on a straightforward resize and alpha-paste operation, with the option to apply Gaussian-feathered edges for a smoother transition. It leverages a schema compatible with the InpaintCropProMEC, ensuring that the inpainted section is accurately resized and placed back into the original image without blending artifacts. This node is particularly beneficial for users looking to maintain the integrity of the original image while incorporating inpainted sections, offering a clean and efficient method to achieve professional results.

Inpaint Paste Back — legacy (C2C) Input Parameters:

stitcher

The stitcher parameter is a dictionary that provides the necessary schema for placing the inpainted crop back onto the original image. It is crucial for defining how the inpainted section aligns with the original image, ensuring that the placement is accurate and seamless. This parameter does not have a default value and must be provided by the InpaintCropProMEC.

inpainted_image

The inpainted_image parameter represents the inpainted crop result, formatted as a multi-dimensional array (B, H, W, C). This input is the section of the image that has been processed and is ready to be reintegrated into the original image. It is essential for the node to function, as it provides the content that will be pasted back.

upscale_method

The upscale_method parameter determines the interpolation method used when resizing the inpainted crop to fit back into the original image. Available options include "lanczos", "bicubic", "bilinear", "nearest", and "area". The choice of method can affect the quality and smoothness of the resized image, with "bicubic" often being the default for a balance between quality and performance.

feather_edges

The feather_edges parameter is a boolean that, when enabled, applies Gaussian-feathered edges to the inpainted crop. This option helps to blend the edges of the inpainted section with the original image, reducing visible seams and creating a more natural transition. The default value is typically False, meaning no feathering is applied unless specified.

feather_radius

The feather_radius parameter specifies the radius of the Gaussian feathering applied to the edges of the inpainted crop. This value determines the extent of the feathering effect, with larger values resulting in a more gradual transition. The parameter is only relevant if feather_edges is enabled.

Inpaint Paste Back — legacy (C2C) Output Parameters:

out

The out parameter is the final output image, which includes the inpainted crop seamlessly integrated back into the original image. This output is a multi-dimensional array that reflects the combined result of the original and inpainted sections, ensuring that the inpainting process is visually coherent and professionally executed.

info

The info parameter provides a summary of the operation, including details such as the number of frames processed, the upscale method used, and whether feathering was applied. This information is useful for understanding the processing steps and verifying that the desired settings were applied during the operation.

Inpaint Paste Back — legacy (C2C) Usage Tips:

  • Ensure that the stitcher dictionary is correctly configured and compatible with the InpaintCropProMEC to avoid misalignment issues.
  • Choose the upscale_method based on the desired quality and performance trade-offs; "bicubic" is often a good starting point for most applications.
  • Enable feather_edges and adjust the feather_radius to achieve smoother transitions between the inpainted crop and the original image, especially when dealing with complex textures or patterns.

Inpaint Paste Back — legacy (C2C) Common Errors and Solutions:

" Inpaint Paste Back — legacy (C2C): Invalid stitcher format"

  • Explanation: This error occurs when the stitcher input is not a valid dictionary or does not conform to the expected schema.
  • Solution: Verify that the stitcher is correctly generated by the InpaintCropProMEC and that it contains all necessary information for the paste-back operation.

" Inpaint Paste Back — legacy (C2C): Inpainted image dimensions mismatch"

  • Explanation: This error indicates that the dimensions of the inpainted_image do not match the expected format or size for the operation.
  • Solution: Ensure that the inpainted_image is correctly processed and formatted as a multi-dimensional array (B, H, W, C) before inputting it into the node.

" Inpaint Paste Back — legacy (C2C): Unsupported upscale method"

  • Explanation: This error is triggered when an invalid upscale_method is selected.
  • Solution: Choose from the supported interpolation methods: "lanczos", "bicubic", "bilinear", "nearest", or "area". Double-check the spelling and case of the method name.

Inpaint Paste Back — legacy (C2C) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-CustomNodePacks
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.

Inpaint Paste Back — legacy (C2C)