ComfyUI Extension: comfyui-DF-ResizeImage
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.
This custom node resizes an image while forcing the final width and height to be multiples of a chosen value.
Looking for a different extension?
Custom Nodes (0)
README
comfyui-DF-ResizeImage
This custom node resizes an image while forcing the final width and height to be multiples of a chosen value.
Features
- Resize by long side while keeping aspect ratio.
- Resize by short side while keeping aspect ratio.
- Resize by scale factor.
- Set output by long side and short side directly.
- Return the resized image together with the final width and height.
- Default alignment is
multiple_of = 16.
Example
If the input image is 1111 x 1126 and you choose:
mode = long_sidelong_side = 1536multiple_of = 16rounding = nearest
The output size will be 1520 x 1536.
Install
- Clone this repository to
ComfyUI/custom_nodes/comfyui-DF-ResizeImage. - Restart ComfyUI.
Inputs
image: ComfyUI image input.mode:long_side,short_side,scale_factor, orlong_and_short.interpolation:bicubic,bilinear,area, ornearest.multiple_of: force both sides to be multiples of this number.rounding: how values are snapped to the multiple. Usenearestfor the example above.long_side: used bylong_sideandlong_and_short.short_side: used byshort_sideandlong_and_short.scale_factor: used byscale_factor.
Outputs
image: resized image.width: final output width.height: final output height.
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.