ComfyUI Node

Image Sizer

A ComfyUI node in PrzewodoUtils with 4 inputs and 2 outputs.

By przewodo·Created about a year ago·Updated 4 months ago· 4
Image Sizer
    • Width
    • Height
    model_type
    aspect_ratio_width1
    aspect_ratio_height1
    image_scale1.00
    CategoryPrzewodoUtils

    Inputs (4)

    NameTypeDefaultDescription
    model_typeCOMBOModel type that determines the base resolution and total pixel count. Each model has optimized dimensions: SD (512x512), SDXL (1024x1024), Video 480p (832x480), Video 720p (1280x720), Flux Kontext (1024x1024), Flux 1D (1536x1536).
    aspect_ratio_widthINT1Width component of the desired aspect ratio. Combined with aspect_ratio_height to calculate the final dimensions while maintaining the model's total pixel count.
    aspect_ratio_heightINT1Height component of the desired aspect ratio. Combined with aspect_ratio_width to calculate the final dimensions while maintaining the model's total pixel count.
    image_scaleFLOAT1.000.01–1Scale factor to apply to the final image dimensions.

    Outputs (2)

    NameTypeDescription
    WidthINT
    HeightINT