Nodes/ComfyUI-AI2Go-Utils/AI2Go Resolution Selector
ComfyUI Node

AI2Go Resolution Selector

Pick a valid resolution by mode + aspect ratio, output width/height as INT. - profile: 'default' (no clamp; snaps to the 'snap_multiple' field) or a model ruleset like 'Ideogram 4' (multiples of 16, 256-2048 px per side). - resolution_mode: 'raw' (type width/height), 'auto' (pick a ratio; edit one side, the other follows), or 'megapixel' (target megapixels + ratio; both computed). - aspect_ratio lists square + landscape ratios; the '⟷' flip button (orientation) makes the portrait versions. megapixels feeds the megapixel mode. Wire width/height into the AI2Go Ideogram 4 Prompt Builder's width/height inputs; edits push into the builder's canvas live (they also apply on execution).

By Little-God1983·Created 2 months ago·Updated 26 days ago· 1
AI2Go Resolution Selector
    • width
    • height
    profiledefault
    resolution_modemegapixel
    aspect_ratio1:1 (Square)
    megapixels1.0
    width1024
    height1024
    snap_multiple8
    orientationlandscape
    CategoryAI2Go/image

    Inputs (8)

    NameTypeDefaultDescription
    profileCOMBOdefaultModel ruleset. 'default' = no clamp, snaps to 'snap_multiple'. 'Ideogram 4' = multiples of 16, 256-2048 px.
    resolution_modeCOMBOmegapixel'raw' = type width/height; 'auto' = pick a ratio and edit either side; 'megapixel' = pick a target megapixels + ratio. All snap to the profile.
    aspect_ratioCOMBO1:1 (Square)Target aspect ratio for 'auto' and 'megapixel'. Square + landscape only; use the flip button (orientation) for portrait.
    megapixelsFLOAT1.00.1–16Target size in megapixels for 'megapixel' mode. (Ideogram 4 still clamps to ~4.19 MP at 2048x2048.)
    widthINT102464–16384Width. Editable in 'raw' and 'auto'; computed in 'megapixel'. Snapped to the multiple.
    heightINT102464–16384Height. Editable in 'raw' and 'auto'; computed in 'megapixel'. Snapped to the multiple.
    snap_multipleINT81–1024Round each side to a multiple of this. Most diffusion models require multiples of 8, so keep it at 8 unless your model needs otherwise. Ignored by model profiles that define their own multiple (Ideogram 4 = 16).
    orientationCOMBOlandscapeLandscape or portrait. Toggled by the '⟷' flip button in the editor; portrait transposes the selected ratio (16:9 -> 9:16).

    Outputs (2)

    NameTypeDescription
    widthINT
    heightINT