ComfyUI Node
TS Resolution Selector
Pick an aspect ratio and a megapixel budget and get a canvas snapped to multiples of 32.
TS Resolution Selector
- image
- img
◄aspect_ratio1:1►
◄resolution1.5►
◄custom_ratio0:0►
◄original_aspectfalse►
CategoryTS/Image/Size
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| aspect_ratio | COMBO | 1:1 | Aspect-ratio preset for the output resolution. |
| resolution | FLOAT | 1.50.5–4 | Target size in megapixels; width and height are derived from it and the aspect ratio. |
| custom_ratio | STRING | 0:0 | Custom aspect ratio as 'W:H'. Overrides the preset unless left at '0:0'. |
| original_aspect | BOOLEAN | false | Use the connected image's aspect ratio instead of the preset. |
| imageopt | IMAGE | Optional image fitted onto the computed canvas (letterboxed). |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| img | IMAGE | Blank or image-filled canvas at the computed resolution. |