Nodes/NH-Nodes/Layer Layout Composite (NH)
ComfyUI Node

Layer Layout Composite (NH)

A ComfyUI node in NH-Nodes/Image with 17 inputs and 4 outputs.

By jetthuangai·Created 5 months ago·Updated about 15 hours ago· 6
Layer Layout Composite (NH)
  • images
  • background_image
  • image
  • slot_count
  • used_count
  • layout_info
canvas_width2480
canvas_height3508
background_color#FFFFFF
layout_mode
layout_preset
resize_mode
columns2
rows3
margin_x150
margin_y150
gap_x150
gap_y150
custom_units
custom_layout0.06,0.04,0.39,0.20 0.55,0.04,0.39,0.20 0.06,0.28,0.39,0.20 0.55,0.28,0.39,0.20 0.06,0.58,0.39,0.36 0.55,0.58,0.39,0.36
background_fit
CategoryNH-Nodes/Image

Inputs (17)

NameTypeDefaultDescription
imagesIMAGE
canvas_widthINT24801–20000
canvas_heightINT35081–20000
background_colorSTRING#FFFFFF
layout_modeCOMBO3 options: preset, grid, custom
layout_presetCOMBO8 options: 2x3, 2x3_mixed, 2_top_1_bottom, 1_full, 2_vertical, 2_horizontal, +2
resize_modeCOMBO3 options: cover, contain, stretch
columnsINT21–20
rowsINT31–20
margin_xINT1500–10000
margin_yINT1500–10000
gap_xINT1500–10000
gap_yINT1500–10000
custom_unitsCOMBO4 options: auto, relative, percent, pixels
custom_layoutSTRING0.06,0.04,0.39,0.20 0.55,0.04,0.39,0.20 0.06,0.28,0.39,0.20 0.55,0.28,0.39,0.20 0.06,0.58,0.39,0.36 0.55,0.58,0.39,0.36
background_fitCOMBO3 options: stretch, cover, contain
background_imageoptIMAGE

Outputs (4)

NameTypeDescription
imageIMAGE
slot_countINT
used_countINT
layout_infoSTRING