ComfyUI Node: Image Scale By Aspect Ratio (UTK)

Authored by whmc76

Created

Updated

69 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

UniversalToolkit/Image

Inputs

aspect_ratio
  • original
  • custom
  • 1:1
  • 3:2
  • 4:3
  • 16:9
  • 2:3
  • 3:4
  • 9:16
proportional_width INT
proportional_height INT
fit
  • stretch
  • resize
  • pad
  • pad_edge
  • pad_edge_pixel
  • crop
  • pillarbox_blur
method
  • lanczos
  • bicubic
  • hamming
  • bilinear
  • box
  • nearest
round_to_multiple
  • 8
  • 16
  • 32
  • 64
  • 128
  • 256
  • 512
  • None
scale_to_side
  • None
  • longest
  • shortest
  • width
  • height
  • total_pixel(kilo pixel)
scale_to_length INT
background_color
  • black
  • white
  • gray
  • red
  • green
  • blue
  • yellow
  • cyan
  • magenta
crop_position
  • center
  • top
  • bottom
  • left
  • right
image IMAGE
mask MASK

Outputs

IMAGE

MASK

BOX

INT

INT

INT

Extension: ComfyUI-UniversalToolkit

A comprehensive toolkit based on ComfyUI, providing image, mask, audio, and tools nodes, fully modular and v3 compatible.

Authored by whmc76

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