https://github.com/christian-byrne/size-match-compositing-nodes
ComfyUI custom nodes to match size of images and composite image layers
https://github.com/christian-byrne/size-match-compositing-nodes
comfyui comfyui-nodes
Last synced: about 2 months ago
JSON representation
ComfyUI custom nodes to match size of images and composite image layers
- Host: GitHub
- URL: https://github.com/christian-byrne/size-match-compositing-nodes
- Owner: christian-byrne
- Created: 2024-05-27T01:24:33.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-01-05T17:45:02.000Z (3 months ago)
- Last Synced: 2025-01-05T18:27:53.763Z (3 months ago)
- Topics: comfyui, comfyui-nodes
- Language: Python
- Homepage:
- Size: 9.84 MB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **Node - Size Matcher**
README
# *Node* - Size Matcher
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)
## cover_crop_center
> 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
>
>
> 
>
>## cover_crop
> Same as `cover_crop_center` but without centering the smaller after resizing.
>
>
>
> Expand
>
>
> 
>
>## fit_center
> 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_dont_resize
> Center the smaller image inside the larger image without changing either sizes. Then pad the smaller image until sizes match.
>
>
>
> Expand
>
>
> 
>
>## fill
> Expand the smaller image to exactly match the size of the larger image, allowing the aspect ratio to change
>
>
>
> Expand
>
>
> 
>
>## crop_larger_center
> Center the smaller image on the larger image. Then crop the larger image to match the size of the smaller image
>
>
>
> Expand
>
>
> 
>
>## crop_larger_topleft
> Same as `crop_larger_center` but crops the larger image from the top left corner (skip centering)
>
>
> Expand
>
>
>
> 
>
>
>
# *Node* - Paste Cutout on Base Image (Compositing)
- 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
- `invert` option## Base Layer Composite with Alpha Layer
>
>
> Expand
>
>
> 
>
>## BG Being Inferred when Alpha Layer is Missing
>
>
> Expand
>
>
>
> 
>
>
>## Using with Auto Segmentation
>
>
> Expand
>
>
>
> 
>
>
>## With Chromakeying
>
>
> Expand
>
>
>
> 
>
>
># Installation
1. `cd` into `ComfyUI/custom_nodes`
2. `git clone` this repo# Requirements
- Python3.10+