Load Image w FilePath Out
Load an image by raw path, with the metadata for free
- IMAGE
- MASK
- FILE NAME
- FOLDER PATH
- WIDTH
- HEIGHT
- DATE MODIFIED
ComfyUI's built-in LoadImage has a dropdown that only shows files inside ComfyUI's own input folder. Load Image w FilePath Out exists for the exact moment that stops being true: you want to load an image from an arbitrary path - somewhere on your D: drive, a project folder, a path that arrived as a string from another node. You type or wire in a path, and it loads the image, its mask, and hands back the file name, folder path, width, and height as separate outputs.
The "FilePath Out" in the name is the whole value. Beyond the raw-path loading, it's a metadata node: having WIDTH, HEIGHT, FOLDER PATH, and FILE NAME as real outputs means you can wire them into filename templates, condition logic, or downstream resizers without hardcoding anything. And the string-input design means paths can come from files or other nodes - which is how it slots into the illumorae pack's broader project-structure philosophy of loading and saving by external paths.
How it works
It's the simplest possible contract: a string in, image out. The image input is a STRING holding the path (the default is C:/path/to/your_image.png - a placeholder, not a real file, so change it before running). debug_mode (false) prints diagnostic output when you're fighting a path issue.
Outputs:
IMAGE- the loaded image.MASK- the alpha/mask channel, so transparency survives the load like any proper loader.FILE NAME/FOLDER PATH- the path split into its parts.WIDTH/HEIGHT- dimensions as ints.
Wire FILE NAME into a save node's filename for provenance, or feed WIDTH/HEIGHT into a resize node that needs to know the source size. It's the pack's companion to Load Text File Graceful (which does the same "give me a path, I'll read the file" trick for text) and Load Random File From Path By Prefix (which picks a random file for you).
Installing it
Part of CorvaeOboro's ComfyUI_illumorae (CC0, pure code). ComfyUI Manager → search illumorae, or:
cd ComfyUI/custom_nodes
git clone https://github.com/CorvaeOboro/ComfyUI_illumorae
Common issues
- "File not found" on a path you're sure exists - watch for Windows backslashes getting mangled, and the default placeholder path. If you're on Linux,
C:/...paths obviously won't resolve; use your real absolute path. - No mask output / transparency lost - if the source is a JPEG or has no alpha, the mask comes back empty. That's correct; only PNG/WebP-with-alpha inputs carry a real mask.
- It's not a "folder browser" - this node takes a path string deliberately; if you want the ComfyUI-folder dropdown, the built-in LoadImage is still there. This one is for programmatic paths.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| image | STRING | C:/path/to/your_image.png | — |
| debug_mode | BOOLEAN | false | — |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| FILE NAME | STRING | — |
| FOLDER PATH | STRING | — |
| WIDTH | INT | — |
| HEIGHT | INT | — |
| DATE MODIFIED | FLOAT | — |