Nodes/scorpiov-nodes/Scorpiov Image Loader πŸ–ΌοΈ
ComfyUI Node

Scorpiov Image Loader πŸ–ΌοΈ

The Load Image that also tells you the filename

By scorpiovΒ·Created 3 months agoΒ·Updated 9 days agoΒ· 2
Scorpiov Image Loader πŸ–ΌοΈ
    • image
    • filename
    • file_path
    β—„imageβ–Ύβ–Ί

    ComfyUI's built-in Load Image gives you an IMAGE tensor and nothing else - the filename it loaded is silently swallowed. Most of the time that's fine, because most of what you do with an image is feed it downstream. But the moment a node needs to know which file it's working with - logging, metadata, saving the result next to the source, deciding behavior by filename - you're stuck reconstructing it from the widget value. Scorpiov Image Loader is the fix: same loader, with the filename and full path handed to you as real outputs.

    It's a small node and it knows it. You drop it in, pick a file, and you get three outputs:

    • image - the IMAGE tensor, exactly like the built-in Load Image.
    • filename - the bare name, e.g. photo.png, as a STRING.
    • file_path - the full path to the file, also a STRING.

    That's the entire feature list, and for what it is, that's exactly right. Wire image into whatever consumes the pixels, and wire filename or file_path into anything that needs to know the source. The classic use is a Save Image node that wants to name its output after the input, or a logging/tracking node that records which source image produced which result.

    How it works

    Under the hood it's a thin wrapper over ComfyUI's own image loading, scanning your input/ directory for the file picker (png, jpg, jpeg, webp, bmp, gif, tiff all show up). The one behavior worth knowing: if the file can't be resolved - moved, renamed, or mistyped - it doesn't crash your whole workflow. It returns a 1Γ—1 black placeholder image along with empty strings for the path outputs, so downstream nodes keep running and you discover the problem from the log line rather than a wall of red. Whether that's a feature (robustness) or a trap (a silently-black image feeding your pipeline) is up to how you use it - just be aware a missing file degrades quietly.

    Gotchas

    • The file picker shows files from ComfyUI's input/ directory, not arbitrary paths. If you need a file from elsewhere, either drop it in input/ or reach for a different loader.
    • Because it's a wrapper, you get none of the extra preprocessing options some fancier loaders add - no EXIF stripping toggles, no orientation handling. It loads, and reports the name. That's the job.

    Installing

    Scorpiov Image Loader is part of the scorpiov-nodes pack, so installing the pack gets you this node and the rest of them. Two ways:

    cd ComfyUI/custom_nodes
    git clone https://github.com/vikramudyawar/scorpiov-nodes
    

    then restart ComfyUI, or search "scorpiov-nodes" in ComfyUI Manager and let it handle it. No extra Python dependencies and no model downloads - the whole pack is deliberately dependency-free.

    Honest take: you won't need this node most days. The built-in Load Image covers the common case, and ComfyUI's core filename_prefix tricks cover a lot of naming needs. But the day you're building a comparison workflow, a batch processor that logs its inputs, or anything where "which file made this" matters, spending one node slot on a loader that tells you the filename is a lot cheaper than patching it together with string nodes. It's the kind of small, boring utility that quietly earns its place.

    CategoryScorpiov/Image

    Inputs (1)

    NameTypeDefaultDescription
    imageCOMBO1 options: example.png

    Outputs (3)

    NameTypeDescription
    imageIMAGEβ€”
    filenameSTRINGβ€”
    file_pathSTRINGβ€”