CivArchive
    Resolution Normalizer - v1.0
    Preview 124164953

    Resolution Normalizer (ComfyUI Node)

    Resolution Normalizer is a utility node for ComfyUI that rescales image resolutions while preserving the aspect ratio.

    The node supports multiple normalization strategies, allowing you to normalize an image resolution by its minimum side, maximum side, or the sum of width and height.

    This makes it useful for preparing images for Stable Diffusion pipelines, resizing reference images, or normalizing resolutions across workflows.


    Features

    • Preserve the original aspect ratio

    • Normalize resolution using different strategies

    • Automatically upscale or downscale

    • Display the resulting resolution as a formatted string (debug)


    Installation

    1. Download the zip file.

    2. Extract it into the ComfyUI custom_nodes directory:

    3. Restart ComfyUI.

    The Resolution Normalizer node will appear in the node menu.


    Normalization Modes

    Min Mode

    Ensures the smallest side of the image equals the target value.

    Example:

    Input image: 1920 × 1080 Target value: 480 Result: 853 × 480

    Max Mode

    Ensures the largest side of the image equals the target value.

    Example:

    Input image: 1920 × 1080 Target value: 1024 Result: 1024 × 576

    Sum Mode

    Ensures the sum of width and height equals the target value.

    Example:

    Input image: 1920 × 1080 Target value: 2000 Result: 1280 × 720


    Example Use Cases

    Preparing images for Stable Diffusion

    Resize images so the shortest side matches a given resolution.

    Limiting maximum image size

    Resize images so the longest side matches a given resolution.

    Sum of sides

    Resize images so the sum of the sides of the output image is equal to a given value.

    This is useful to keep the computational cost constant.


    Example Workflow

    Load Image ➔ Resolution Normalizer ➔ Empty Latent Image


    Description

    Workflows
    Other

    Details

    Downloads
    26
    Platform
    CivitAI
    Platform Status
    Available
    Created
    3/14/2026
    Updated
    3/25/2026
    Deleted
    -

    Files

    resolutionNormalizer_v10.zip

    Mirrors

    Huggingface (1 mirrors)
    CivitAI (1 mirrors)