ComfyUI Extension: ComfyUI Pad To Eight
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A custom ComfyUI node that pads an image to a multiple of 8 width.
README
ComfyUI PadToEight Node
This is a custom node for ComfyUI that pads images to multiples of eight dimensions.
Installation
- Clone the repository into your ComfyUI custom_nodes directory:
git clone https://github.com/umiyuki/comfyui-pad-to-eight.git
- Install dependencies:
cd ComfyUI/custom_nodes/ComfyUI-PadToEight
pip install -r requirements.txt
For portable ComfyUI versions:
python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-PadToEight\requirements.txt
Usage
- Load the node in ComfyUI
- Connect your image to the PadToEight node
- The node will:
- Resize the image to 1024px height while maintaining aspect ratio
- Pad the width to the nearest multiple of 8 pixels
- Return the processed image along with its final dimensions
Input/Output
- Input:
image: Any RGB image tensor
- Output:
image: Processed image tensorwidth: Final image width (multiple of 8)height: Final image height (1024px)
Example Workflow
{
"nodes": [
{
"type": "PadToEight",
"inputs": {
"image": "<your_image>"
}
}
]
}
Features
- Supports both RGB and RGBA images
- Preserves aspect ratio while padding
- Configurable padding color
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.