Nodes/comfyui-koala/Koala Save Image Anywhere
ComfyUI Node

Koala Save Image Anywhere

Want renders somewhere other than ComfyUI's output folder? This is the node

By cloudkoala·Created about a year ago·Updated about a year ago· 0
Koala Save Image Anywhere
  • images
  • file_path
save_directoryC:/output
filenameimage
file_format
quality95

The stock Save Image node always writes into ComfyUI/output, organized into timestamped subfolders. That's fine until it isn't - until you want every render for one project in one folder, or you need files to land somewhere ComfyUI's gallery never looks. Koala Save Image Anywhere is the escape hatch: pick any absolute directory, and your render goes there as a PNG or JPEG. It's a small utility, but it's the one I'd reach for when the output folder isn't where I need the file to be.

How it works

It takes an IMAGE, makes sure your target directory exists (creating it if needed), converts the tensor to a PIL image, and writes the file with the filename and format you asked for. Then it returns the full saved path as a file_path string - handy if you're building something that chains off the result.

The inputs that matter

  • images: the image tensor to save.
  • save_directory: the absolute folder. Default is C:/output, which is a Windows path. On Linux or macOS, leave it alone and the node will happily create a literal folder named C: inside your ComfyUI working directory. Set this to a real absolute path every time.
  • filename: the base name. The node strips any extension you type, so "portrait.png" becomes "portrait" and it appends the real one.
  • file_format: png or jpg.
  • quality (1–100, default 95): only actually applies to JPEG. PNG saves are lossless and ignore it.

One output: file_path, the string of wherever the file landed.

Where people get burned

Two real gotchas, both from reading the code. First, it saves only the first image in the batch - images[0]. Feed it a batch of four and three of them vanish into the void. If you're generating batches, save each element separately or stick with the stock node. Second, the C:/output default I already yelled about. Permissions errors on a system folder are the other classic: pick a directory you can actually write to.

Install

No extra Python deps - torch, numpy and Pillow are already part of ComfyUI. The README says ComfyUI Manager support is "coming soon," so clone it manually:

cd ComfyUI/custom_nodes
git clone https://github.com/cloudkoala/comfyui-koala.git

Restart and you'll find "Koala Save Image Anywhere" under the Koala category. It shares its pack with the Koala aspect-ratio and mesh-save nodes.

A word of restraint

There's a broader ecosystem argument about "save anywhere" style nodes worth hearing before you build your whole workflow around them: the community has pushed back on anything-goes routing nodes because they make graphs hard to debug and workflows break when they're hidden inside a chain. Use this deliberately - when you genuinely need the file in a specific folder - rather than as a default substitute for Save Image. The stock node feeds the frontend gallery, which is often what you actually want.

CategoryKoala

Inputs (5)

NameTypeDefaultDescription
imagesIMAGE
save_directorySTRINGC:/output
filenameSTRINGimage
file_formatCOMBO2 options: png, jpg
qualityINT951–100

Outputs (1)

NameTypeDescription
file_pathSTRING