Nodes/comfyui-timesaver/TS Resolution Selector
ComfyUI Node

TS Resolution Selector

Pick an aspect ratio and a megapixel budget and get a canvas snapped to multiples of 32.

By AlexYez·Created 2 years ago·Updated 3 days ago· 11
TS Resolution Selector
  • image
  • img
aspect_ratio1:1
resolution1.5
custom_ratio0:0
original_aspectfalse
CategoryTS/Image/Size

Inputs (5)

NameTypeDefaultDescription
aspect_ratioCOMBO1:1Aspect-ratio preset for the output resolution.
resolutionFLOAT1.50.5–4Target size in megapixels; width and height are derived from it and the aspect ratio.
custom_ratioSTRING0:0Custom aspect ratio as 'W:H'. Overrides the preset unless left at '0:0'.
original_aspectBOOLEANfalseUse the connected image's aspect ratio instead of the preset.
imageoptIMAGEOptional image fitted onto the computed canvas (letterboxed).

Outputs (1)

NameTypeDescription
imgIMAGEBlank or image-filled canvas at the computed resolution.