Nodes/comfyui-find-perfect-resolution/Find Perfect Resolution
ComfyUI Node

Find Perfect Resolution

A ComfyUI node in utils with 9 inputs and 5 outputs.

By ashtar1984·Created 10 months ago·Updated 8 months ago· 22
Find Perfect Resolution
  • image
  • mask
  • width
  • height
  • IMAGE
  • mask_output
  • resolution_info
desired_width0
desired_height0
divisible_by16
upscalefalse
upscale_methodlanczos
small_image_modenone
pad_color#000000
Categoryutils

Inputs (9)

NameTypeDefaultDescription
imageIMAGE
desired_widthINT00–8192
desired_heightINT00–8192
divisible_byINT161–128
maskoptMASK
upscaleoptBOOLEANfalse
upscale_methodoptCOMBOlanczos4 options: lanczos, bilinear, bicubic, nearest
small_image_modeoptCOMBOnone3 options: none, crop, pad
pad_coloroptSTRING#000000

Outputs (5)

NameTypeDescription
widthINT
heightINT
IMAGEIMAGE
mask_outputMASK
resolution_infoSTRING