Nodes/riversidenodes/πŸ“ Image Resize to Nearest Model Resolution
ComfyUI Node

πŸ“ Image Resize to Nearest Model Resolution

A ComfyUI node in riversidenodes with 4 inputs and 3 outputs.

By RiverSide71Β·Created 4 months agoΒ·Updated 2 months agoΒ· 1
πŸ“ Image Resize to Nearest Model Resolution
  • image
  • IMAGE
  • WIDTH
  • HEIGHT
β—„modelβ–Ύβ–Ί
β—„interpolation_modeβ–Ύβ–Ί
β—„resize_longest_side0β–Ί
Categoryriversidenodes

Inputs (4)

NameTypeDefaultDescription
imageIMAGEβ€”
modelCOMBO10 options: Qwen_Image, Z_Image_Turbo, Ernie_Image_Turbo, SDXL, Flux, Flux2, +4
interpolation_modeCOMBO5 options: bicubic, bilinear, lanczos, nearest, nearest exact
resize_longest_sideINT00–81920 = use the model's native resolution exactly. Any other value: the best-matching resolution is scaled proportionally so its longest side equals this number (rounded to the nearest 8 px).

Outputs (3)

NameTypeDescription
IMAGEIMAGEβ€”
WIDTHINTβ€”
HEIGHTINTβ€”