TensorImgUtils











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.
Expand
Same as
cover_crop_centerbut without centering the smaller after resizing.
Expand
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.
Expand
Center the smaller image inside the larger image without changing either sizes. Then pad the smaller image until sizes match.
Expand
Expand the smaller image to exactly match the size of the larger image, allowing the aspect ratio to change
Expand
Center the smaller image on the larger image. Then crop the larger image to match the size of the smaller image
Expand
Same as
crop_larger_centerbut crops the larger image from the top left corner (skip centering)
Expand
invert option
Expand
Expand
Expand
Expand
cd into ComfyUI/custom_nodesgit clone this repo