ComfyUI Node: Find Perfect Resolution

Authored by ashtar1984

Created

Updated

22 stars

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.

Category

utils

Inputs

image IMAGE
desired_width INT
desired_height INT
divisible_by INT
mask MASK
upscale BOOLEAN
upscale_method
  • lanczos
  • bilinear
  • bicubic
  • nearest
small_image_mode
  • none
  • crop
  • pad
pad_color STRING

Outputs

INT

INT

IMAGE

MASK

STRING

Extension: comfyui-find-perfect-resolution

This custom ComfyUI node, Find Perfect Resolution, calculates an optimal output resolution for an input image while preserving its aspect ratio and ensuring dimensions are divisible by a specified value. It is designed to work seamlessly in ComfyUI workflows, particularly for resizing images with nodes like 'Resize Image v2'.

Authored by ashtar1984

Looking for a different node?

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.

Learn more