Nodes/ComfyUI-TextureAlchemy/Padding Calculator
ComfyUI Node

Padding Calculator

A ComfyUI node in Texture Alchemist/Texture with 4 inputs and 5 outputs.

By amtarr·Created 8 months ago·Updated 4 months ago· 54
Padding Calculator
    • new_width
    • new_height
    • pad_pixels_width
    • pad_pixels_height
    • info
    width1024
    height1024
    pad_percentage10.0
    rounding_moderound
    CategoryTexture Alchemist/Texture

    Inputs (4)

    NameTypeDefaultDescription
    widthINT10241–16384Original image width in pixels
    heightINT10241–16384Original image height in pixels
    pad_percentageFLOAT10.00–100Padding percentage (will be rounded to whole pixels)
    rounding_modeCOMBOroundHow to round fractional pixels: round (nearest), floor (down), ceil (up)

    Outputs (5)

    NameTypeDescription
    new_widthINT
    new_heightINT
    pad_pixels_widthINT
    pad_pixels_heightINT
    infoSTRING