Nodes/ComfyUI CoolB Nodes/CB Nearest Resolution ⚡️
ComfyUI Node

CB Nearest Resolution ⚡️

Calculates the nearest resolution for an input image/video that matches chosen megapixels and divisible_by, while keeping the aspect ratio closest to the original. Connect output to any resize node.

By CoolBreeze164·Created about a month ago·Updated a day ago· 3
CB Nearest Resolution ⚡️
  • image
  • width
  • height
◄megapixels1.00►
◄divisible_by32►
CategoryCoolB Nodes ⚡️

Inputs (3)

NameTypeDefaultDescription
imageIMAGE—
megapixelsFLOAT1.000.01–100—
divisible_byINT321–1024—

Outputs (2)

NameTypeDescription
widthINT—
heightINT—