Nodes/ComfyUI-HotSwitches/Hot Resolution Mode Switch
ComfyUI Node

Hot Resolution Mode Switch

Switch between a bucketed Resolution Selector (aspect ratio + megapixels + multiple), a manual width/height pair, or the size of a connected image. Only the active mechanic's controls are shown on the node, and the image branch only runs in From Image mode.

By Bloodwolfb·Created 5 days ago·Updated a day ago· 1
Hot Resolution Mode Switch
  • image
  • width
  • height
◄modeResolution Selector►
◄aspect_ratio1:1 (Square)►
◄megapixels1.0►
◄multiple8►
◄width512►
◄height512►
CategoryHotComfy/Switches

Inputs (7)

NameTypeDefaultDescription
modeCOMBOResolution SelectorWhich mechanic drives the output width/height.
aspect_ratioCOMBO1:1 (Square)The aspect ratio for the bucketed dimensions.
megapixelsFLOAT1.00.1–16Target total megapixels. 1.0 MP ≈ 1024x1024 for square.
multipleINT88–128Nearest multiple of the result to round the bucketed resolution to.
widthINT51264–16384Manual width. Used when mode is Manual Resolution.
heightINT51264–16384Manual height. Used when mode is Manual Resolution.
imageoptIMAGEImage to read the size from. Used when mode is From Image; ignored (and not evaluated) otherwise.

Outputs (2)

NameTypeDescription
widthINTSelected width in pixels.
heightINTSelected height in pixels.