2🐕Load any image
One node for loading a file, a whole folder, or a PSD
- IMAGE
- MASK
ComfyUI's stock image loader wants a single file, picked from a fixed input directory, and that's fine right up until it isn't - until you want to point at a folder and iterate, or load a file type the stock loader doesn't handle. The README pitches Load any image as covering both gaps at once: "Load any image! File or folder! Including psd, and can be updated in real-time!" That last part matters as much as the format support - you can repoint it at a file on disk that's actively changing and have it pick up the change without restarting ComfyUI.
How it works
file_path is a plain string - point it at either a single image file or a folder; the README's framing implies folder mode cycles through what's inside rather than requiring you to name one file every time. fill_color (a dropdown of None, white, gray, black) controls what fills empty space when the loaded content doesn't cleanly fill whatever canvas the node needs - relevant for PSD sources especially, where layer bounds and canvas bounds don't always match. smooth (on by default) softens edges on any resampling the load involves. The optional seed input almost certainly does double duty here: in folder mode it's likely what selects which file you get, and bumping it is also the standard ComfyUI trick for forcing a node to re-run even when the text you typed in file_path hasn't changed - useful specifically because this node claims to support files that update in real time. Two outputs: IMAGE and MASK - for a PSD or any source with transparency, the mask is very likely derived from the alpha channel, giving you a ready-made cutout mask alongside the pixels.
What to actually set
file_path is the only thing you strictly need. Leave fill_color at None unless you're specifically dealing with content that needs padding, and leave smooth on unless you have a reason to want hard, unsmoothed edges.
Installing it
ComfyUI Manager: search "Comfyui-ergouzi-Nodes", install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/11dogzi/Comfyui-ergouzi-Nodes.git
No model downloads needed. Worth flagging for this specific node: this pack is Pillow-based under the hood (confirmed by its filter node exposing Pillow's exact ImageFilter preset names), and Pillow's PSD support is limited to reading the flattened composite - if you're expecting per-layer access from a multi-layer PSD, this node almost certainly won't give it to you, it'll give you the merged image. And as with the rest of the pack: this is a small, low-visibility repo with very little English-language community discussion around it, and the English branch itself is frozen, with active development on a separate Chinese-first sibling repo.
Common issues & troubleshooting
PSD loads but looks flattened / missing layer effects. Consistent with the Pillow-limitation note above - this is very likely a library limitation, not something specific to this node's implementation.
Real-time update isn't picking up a changed file. If you overwrote the file on disk and the graph still shows the old version, try bumping seed - ComfyUI often caches a node's output by its input values, and a changed file with the same file_path string may not register as a new input on its own.
Folder mode isn't behaving as expected. Given the loose documentation on this exact behavior, if folder iteration doesn't do what you assumed, try pointing file_path at a single file instead to isolate whether the issue is folder handling specifically or something else in the chain.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| file_path | STRING | — | |
| fill_color | COMBO | 4 options: None, white, gray, black | |
| smooth | BOOLEAN | true | — |
| seedopt | INT | 00–18446744073709550000 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |