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

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.7%) to scientific vocabulary

Keywords

comfyui comfyui-nodes
Last synced: 6 months ago · JSON representation

Repository

ComfyUI custom nodes to match size of images and composite image layers

Basic Info
  • Host: GitHub
  • Owner: christian-byrne
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 9.84 MB
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 5
  • Open Issues: 1
  • Releases: 0
Topics
comfyui comfyui-nodes
Created almost 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

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)

covercropcenter

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 ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/cover-crop-center.png?raw=true)

cover_crop

Same as cover_crop_center but without centering the smaller after resizing.

  Expand ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/cover-crop.png?raw=true)

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 ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/fit-center.png?raw=true)

centerdontresize

Center the smaller image inside the larger image without changing either sizes. Then pad the smaller image until sizes match.

  Expand ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/center-dont-resize.png?raw=true)

fill

Expand the smaller image to exactly match the size of the larger image, allowing the aspect ratio to change

  Expand ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/fill.png?raw=true)

croplargercenter

Center the smaller image on the larger image. Then crop the larger image to match the size of the smaller image

  Expand ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/crop-larger-center.png?raw=true)

croplargertopleft

Same as crop_larger_center but crops the larger image from the top left corner (skip centering)

  Expand ![alt text](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/size-match/crop-larger-topleft.png?raw=true)

 

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 ![paste-cutout](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/composite/paste-cutout.png?raw=true)

BG Being Inferred when Alpha Layer is Missing

  Expand ![inferred-bg](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/composite/inferred-bg.png?raw=true)

Using with Auto Segmentation

  Expand ![with-auto-segmentation](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/composite/with-auto-segmentation.png?raw=true)

With Chromakeying

  Expand ![with-chromakeying](https://github.com/christian-byrne/size-match-compositing-nodes/blob/demo-files/wiki/demo/composite/with-chromakeying.png?raw=true)

Installation

  1. cd into ComfyUI/custom_nodes
  2. git clone this repo

Requirements

  • Python3.10+

Owner

  • Name: Christian Byrne
  • Login: christian-byrne
  • Kind: user
  • Location: San Francisco
  • Company: Comfy-Org

GitHub Events

Total
  • Watch event: 1
  • Push event: 4
  • Fork event: 1
  • Create event: 1
Last Year
  • Watch event: 1
  • Push event: 4
  • Fork event: 1
  • Create event: 1

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

pyproject.toml pypi
requirements.txt pypi
.github/workflows/publish.yml actions
  • Comfy-Org/publish-node-action main composite
  • actions/checkout v4 composite