Nodes/ComfyUI-ResolutionHelper/Resolution from PixelBudget
ComfyUI Node

Resolution from PixelBudget

Calculate Width & Height from aspect ratio and Pixel Budget target, in 'multiple' multiples.

By AlfredSartan572·Created about a month ago·Updated a day ago· 1
Resolution from PixelBudget
    • width
    • height
    • longest
    • megapixels
    ◄aspect_ratio▾►
    ◄pixelbudget▾►
    ◄multiple32►
    CategoryResolution Tools

    Inputs (3)

    NameTypeDefaultDescription
    aspect_ratioCOMBO15 options: 32:9 (Super Ultrawide), 21:9 (Ultrawide), 16:9 (Widescreen), 16:10 (WUXGA), 5:4 (5:4 Standard), 4:3 (Standard), +9
    pixelbudgetCOMBO20 options: 240p, 360p, 480p, 544p, 640p, 720p, +14
    multipleINT321–112MiniMaxH3=32, Illustrious/Pony=8, other=16

    Outputs (4)

    NameTypeDescription
    widthINT—
    heightINT—
    longestINTThe larger of the width and height values (i.e. longest edge)
    megapixelsFLOATThe number of pixels for the calculated width and height, expressed in megapixels