ComfyUI Node: Ratio Advanced (Mikey)

Authored by bash-j

Created

Updated

121 stars

Category

Mikey/Utils

Inputs

preset
  • 1024x1024 (AR 1:1 / DEC 1.0:1)
  • 1024x960 (AR ~1:1 / Near 16:15 / DEC 1.07:1)
  • 1088x896 (AR ~4:3 / Near 17:14 / DEC 1.21:1)
  • 1088x960 (AR ~4:3 / Near 8.5:7.5 / DEC 1.13:1)
  • 1152x832 (AR ~4:3 / Near 18:13 / DEC 1.38:1)
  • 1152x896 (AR ~4:3 / Near 4.5:3.5 / DEC 1.29:1)
  • 1216x832 (AR ~4:3 / Near 19:13 / DEC 1.46:1)
  • 1280x768 (AR ~16:9 / Near 5:3 / DEC 1.67:1)
  • 1344x768 (AR ~16:9 / Near 7:4 / DEC 1.75:1)
  • 1408x704 (AR 2:1 / DEC 2.0:1)
  • 1472x704 (AR ~2:1 / Near 23:11 / DEC 2.09:1)
  • 1536x640 (AR ~21:9 / Near 12:5 / DEC 2.4:1)
  • 1600x640 (AR ~5:2 / DEC 2.5:1)
  • 1664x576 (AR ~26:9 / DEC 2.89:1)
  • 1728x576 (AR ~3:1 / DEC 3.0:1)
  • 1792x576 (AR ~28:9 / DEC 3.11:1)
  • 1856x512 (AR ~29:8 / DEC 3.62:1)
  • 1920x512 (AR ~15:4 / DEC 3.75:1)
  • 1984x512 (AR ~31:8 / DEC 3.88:1)
  • 2048x512 (AR 4:1 / DEC 4.0:1)
  • none
swap_axis
  • true
  • false
select_latent_ratio
  • custom
  • 1:1 [1024x1024 square]
  • 8:5 [1216x768 landscape]
  • 4:3 [1152x896 landscape]
  • 3:2 [1216x832 landscape]
  • 7:5 [1176x840 landscape]
  • 16:9 [1344x768 landscape]
  • 21:9 [1536x640 landscape]
  • 19:9 [1472x704 landscape]
  • 3:4 [896x1152 portrait]
  • 2:3 [832x1216 portrait]
  • 5:7 [840x1176 portrait]
  • 9:16 [768x1344 portrait]
  • 9:21 [640x1536 portrait]
  • 5:8 [768x1216 portrait]
  • 9:19 [704x1472 portrait]
custom_latent_w INT
custom_latent_h INT
select_cte_ratio
  • custom
  • 1:1 [1024x1024 square]
  • 8:5 [1216x768 landscape]
  • 4:3 [1152x896 landscape]
  • 3:2 [1216x832 landscape]
  • 7:5 [1176x840 landscape]
  • 16:9 [1344x768 landscape]
  • 21:9 [1536x640 landscape]
  • 19:9 [1472x704 landscape]
  • 3:4 [896x1152 portrait]
  • 2:3 [832x1216 portrait]
  • 5:7 [840x1176 portrait]
  • 9:16 [768x1344 portrait]
  • 9:21 [640x1536 portrait]
  • 5:8 [768x1216 portrait]
  • 9:19 [704x1472 portrait]
cte_w INT
cte_h INT
cte_mult FLOAT
cte_res INT
cte_fit_size INT
select_target_ratio
  • custom
  • 1:1 [1024x1024 square]
  • 8:5 [1216x768 landscape]
  • 4:3 [1152x896 landscape]
  • 3:2 [1216x832 landscape]
  • 7:5 [1176x840 landscape]
  • 16:9 [1344x768 landscape]
  • 21:9 [1536x640 landscape]
  • 19:9 [1472x704 landscape]
  • 3:4 [896x1152 portrait]
  • 2:3 [832x1216 portrait]
  • 5:7 [840x1176 portrait]
  • 9:16 [768x1344 portrait]
  • 9:21 [640x1536 portrait]
  • 5:8 [768x1216 portrait]
  • 9:19 [704x1472 portrait]
target_w INT
target_h INT
target_mult FLOAT
target_res INT
target_fit_size INT
crop_w INT
crop_h INT
use_preset_seed
  • true
  • false
seed INT

Outputs

INT

INT

INT

INT

INT

INT

INT

INT

Extension: Mikey Nodes

Nodes: Prompt With Style, Prompt With SDXL, Resize Image for SDXL, Save Image With Prompt Data, HaldCLUT, Empty Latent Ratio Select/Custom SDXL

Authored by bash-j

Run ComfyUI workflows in the Cloud!

No downloads or installs are required. Pay only for active GPU usage, not idle time. No complex setups and dependency issues

Learn more