Takes two images or masks and matches their sizes using various methods, detailed below. Inlcudes a node to smart-composite (auto match sizes first then composite)
Expand the smaller image to cover the larger image without changing the aspect ratio. Then center it. Then crop any overflowing edges until sizes match.
Same as
cover_crop_centerbut without centering the smaller after resizing.
Expand the smaller image as much as possible to fit inside the larger image without changing the aspect ratio. Then center it. Then pad any remaining space until sizes match.
Center the smaller image inside the larger image without changing either sizes. Then pad the smaller image until sizes match.
Expand the smaller image to exactly match the size of the larger image, allowing the aspect ratio to change
Center the smaller image on the larger image. Then crop the larger image to match the size of the smaller image
Same as
crop_larger_centerbut crops the larger image from the top left corner (skip centering)
- Composites two images together
- Automatically matches size of the images with various size matching methods (if necessary)
- If the cutout doesn't have an alpha channel (not really a cutout), the bg is automatically inferred and made transparent
invertoption
cdintoComfyUI/custom_nodesgit clonethis repo
- Python3.10+










