Nodes/radiance/Load Still (RUDRA)
ComfyUI Node

Load Still (RUDRA)

Your phone photo is Display P3 and sideways — load it properly or the HDR master inherits both

By FXTD-Studios·Created 11 months ago·Updated 9 days ago· 264
Load Still (RUDRA)
    • image
    • alpha
    • source
    • note
    ◄image▾►
    ◄path►

    Two mistakes a normal LoadImage makes

    ComfyUI's stock image loader is built for generation, where "an image" is roughly sRGB and orientation is whatever the tensor says. Point it at a modern still and it makes two quiet errors.

    First, colour. An iPhone photo is often Display P3. Read it as Rec.709 and every saturated colour shifts - the HDR master is then wrong in a way that survives all the way to delivery, and nothing downstream can tell you. Second, orientation. EXIF rotation is metadata, not pixels; ignore it and your portrait becomes a landscape, which is the sort of thing that gets noticed immediately and fixed by rotating, which then bakes in the wrong thing.

    Load Still (RUDRA) is the loader that handles both. It reads the file the way RUDRA reads stills: every code kept whether the file is 8- or 16-bit, the EXIF orientation applied, and the colour tag parsed - ICC profile, PNG cICP, sRGB chunk or cHRM - down to Rec.709/sRGB, Display P3, Rec.2020 or Adobe RGB.

    What makes it more than a better LoadImage

    It doesn't convert anything. The pixels come out as stored, 0..1, in their own primaries. The point is the source output: a RUDRA_SOURCE that you wire into SDR → HDR Analytic (RUDRA)'s source input, so the master gets built in the right primaries and converted at the end instead of being wrong from the first step.

    That's the correct order of operations, and it's why this node earns its slot. Push a P3 photo through the analytic node with source_primaries left on Rec.709 and no loader-level clue, and you've thrown away the wide gamut before you started. With source connected, the connected tag decides and source_primaries is overridden.

    There's a policy here I like: a profile RUDRA doesn't recognise is reported and read as Rec.709. Never guessed. A lot of tooling guesses, and guesses look identical to correct results until QC.

    Inputs and outputs

    Required: image - a dropdown of the stills in ComfyUI's input folder (upload through the node as usual). Optional: path, a string pointing at a file anywhere; when it's non-empty it wins over the dropdown.

    Out, and all four are useful:

    • image - the codes, oriented, unconverted
    • alpha - the alpha channel as a MASK, full white where the file has none
    • source - the colour tag, for the analytic node
    • note - what it found and what it did, in words

    The note is worth wiring to a preview the first few times you use it. It's how you find out that the JPEG you assumed was sRGB was actually Adobe RGB, or that the profile was unrecognised.

    Install

    Part of Radiance:

    cd ComfyUI/custom_nodes
    git clone https://github.com/fxtd-studios/radiance
    cd radiance
    python -m pip install -r requirements.txt
    

    Manager → search Radiance → Install → restart → refresh the browser. Windows portable: python_embeded\python.exe for the pip step. No downloads for this node; decoding is OpenCV plus the pack's own tag reading.

    Where people get burned

    It refuses float pixels. A half-float HDR file gets a clear error telling you to read it with Radiance Read instead - this node is for SDR stills, and quietly tonemapping an HDR file to make it "load" would be the wrong behaviour. Use the HDR reader.

    PNG/JPEG/TIFF/WebP/BMP only. Anything else fails at decode with a message naming those five families. HEIC from an iPhone is the obvious casualty; convert first, and convert carefully so the profile survives.

    path with quotes. Pasting a Windows path straight from Explorer usually brings quotes with it. The node strips them, but if a path form is being stubborn that's the first thing to check.

    The list is the input folder, not your project. Drop files in ComfyUI/input/, or use path for files living anywhere else on disk. And note that a still is read once per run - if you overwrite the file keeping the same name, force a fresh queue rather than trusting the cache.

    CategoryFXTD STUDIOS/Radiance/Load & Save

    Inputs (2)

    NameTypeDefaultDescription
    imageCOMBOA still in ComfyUI's input folder (or upload one).
    pathoptSTRINGA file anywhere instead. Empty: the image above.

    Outputs (4)

    NameTypeDescription
    imageIMAGEThe still's codes, oriented, 0..1 (not converted).
    alphaMASKIts alpha (1 where it has none).
    sourceRUDRA_SOURCEIts primaries, for SDR → HDR Analytic (RUDRA)'s source input.
    noteSTRINGWhat was found and what is done, in words.