Nodes Browser
ComfyDeploy: How ComfyUI Pad To Eight works in ComfyUI?
What is ComfyUI Pad To Eight?
A custom ComfyUI node that pads an image to a multiple of 8 width.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI Pad To Eight
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
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.