ComfyUI Extension
CNP Crop And Paste
Crop and Paste custom nodes for ComfyUI — crop images to mask bboxes and paste them back with alpha blending
dapa5900/ComfyUI-CNP-CropAndPaste
Nodes—
On cloudLocal install
Stars0
Updatedabout a month ago
Readme
ComfyUI-CNP-CropAndPaste
Two custom nodes for ComfyUI that let you crop images to mask bounding boxes and paste them back with alpha blending — handy for inpainting workflows, object isolation, and compositing.
Nodes
- CNP Crop — Crops an image to the mask's bounding box. Supports pixel and percent-based padding, optional resize to a target longer side, and divisible-by centering for clean tile sizes.
- CNP Paste — Composites the cropped image back onto the original canvas using mask-based alpha blending.
Installation
ComfyUI Manager:
- Open ComfyUI Manager
- Click "Install Custom Nodes"
- Search for "CNP Crop And Paste"
- Click Install
Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/dapa5900/ComfyUI-CNP-CropAndPaste.git
License
MIT