Nodes/comfyui-agent-adapter/Calculate Image Size
ComfyUI Node

Calculate Image Size

A ComfyUI node in agent_adapter with 5 inputs and 6 outputs.

By yaofeng·Created 5 months ago·Updated 5 months ago· 0
Calculate Image Size
  • image
  • new_width
  • new_height
  • pad_top
  • pad_bottom
  • pad_left
  • pad_right
aspect_ratio1:1
auto_fliptrue
horizontal_aligncenter
vertical_aligncenter
Categoryagent_adapter

Inputs (5)

NameTypeDefaultDescription
imageIMAGE
aspect_ratioCOMBO1:19 options: 1:1, 4:3, 3:2, 16:9, 21:9, 9:16, +3
auto_flipBOOLEANtrue
horizontal_alignCOMBOcenter3 options: left, center, right
vertical_alignCOMBOcenter3 options: top, center, bottom

Outputs (6)

NameTypeDescription
new_widthINT
new_heightINT
pad_topINT
pad_bottomINT
pad_leftINT
pad_rightINT