Nodes/PortraitUtils/Load Image + Source Info
ComfyUI Node

Load Image + Source Info

Independent folder sequencing, EXIF orientation, optional sRGB conversion, and source info. Does not crop or resize.

By heyburns·Created 12 months ago·Updated 3 days ago· 2
Load Image + Source Info
    • image
    • source_info
    ◄modeSingle►
    ◄input_dir►
    ◄output_dir►
    ◄pattern*►
    ◄strip_trailing_numbersfalse►
    ◄repeat_lastfalse►
    ◄image▾►
    ◄color_managementConvert to sRGB►
    ◄alpha_backgroundWhite►
    CategoryPortraitUtils/IO

    Inputs (9)

    NameTypeDefaultDescription
    modeCOMBOSingle2 options: Single, Batch
    input_dirSTRINGBatch folder; relative to ComfyUI/input or absolute.
    output_dirSTRINGPassed to Save Info from Source; blank keeps saver defaults.
    patternSTRING*Batch glob; **/*.png includes subfolders.
    strip_trailing_numbersBOOLEANfalseStrip only a trailing copy marker such as (2), not normal filename digits.
    repeat_lastBOOLEANfalseBatch: hold the last successfully loaded photo; first use loads the first file.
    imageCOMBO1 options: example.png
    color_managementCOMBOConvert to sRGBConvert embedded 8-bit ICC profiles to sRGB. Untagged photos are assumed sRGB.
    alpha_backgroundCOMBOWhiteComposite transparency onto this background; no alpha mask is emitted.

    Outputs (2)

    NameTypeDescription
    imageIMAGE—
    source_infoPORTRAIT_SOURCE_INFO_V2—