Nodes/Pirog's Nodes for ComfyUI/Proportional Image Scaling
ComfyUI Node

Proportional Image Scaling

Professional image scaling with proportional resize, resolution limits, step alignment, and selectable resampling methods for optimal results.

By Pirog17000·Created about a year ago·Updated 9 months ago· 3
Proportional Image Scaling
  • image
  • scaled_image
  • width
  • height
scale_multiplier1.00
resampling_methodauto
resolution_step8
enable_limitstrue
min_resolution256
max_resolution2560
Categorypirog/transform

Inputs (7)

NameTypeDefaultDescription
imageIMAGEInput image(s) to scale
scale_multiplierFLOAT1.000.1–10Scale factor - 1.0 = original size, 2.0 = double size, 0.5 = half size
resampling_methodCOMBOautoResampling method. 'auto' selects NEAREST for upscaling, LANCZOS for downscaling.
resolution_stepINT81–64Resolution alignment step (dimensions will be rounded to multiples of this value)
enable_limitsBOOLEANtrueEnable resolution limits to prevent extremely large or small images
min_resolutionINT25664–4096Minimum resolution for the longest side when limits are enabled
max_resolutionINT256064–8192Maximum resolution for the longest side when limits are enabled

Outputs (3)

NameTypeDescription
scaled_imageIMAGEScaled image(s) with proper aspect ratio preservation
widthINTWidth of scaled image
heightINTHeight of scaled image