⭐ Star PSD Saver (Dynamic)
Seven layers into one PSD, so you can keep editing in Photoshop
- layer1
- mask1
- flattened_image
ComfyUI is great at generating images and famously bad at giving you layers back. If your final output is a composite - subject on one pass, background on another, a foreground element on a third - you usually have to export each piece and re-stack them in an editor by hand. Star 7 Layers 2 PSD (StarPSDSaver) automates that: wire up to seven images into it, hit run, and it writes a single layered .psd file you can open in Photoshop, GIMP, or Photopea and keep editing like a normal document.
How it works
You get seven slot pairs - layer1 through layer7, each with an optional mask1 through mask7. Connect as many as you have (they're all optional), and the node composites them into a PSD with one layer per image. It uses psd-tools, which is a real dependency of the pack, so this node only loads if that library is present - the Manager install handles it. Two settings control the output:
- filename_prefix - the file name. Defaults to
multilayer. - output_dir - where it lands. Default is
ComfyUI/output/PSD_Layers, which keeps it out of your main output folder so it doesn't pollute your image stream.
The node auto-sizes everything to the largest image's dimensions, so mismatched input sizes line up on a common canvas rather than producing layers at wildly different scales. Masks become layer masks in the PSD - that's the part that makes this genuinely useful, because a mask that took you minutes to refine in ComfyUI survives as an editable layer mask instead of being flattened into the pixels.
When you'd actually use this
Any workflow that ends in compositing. The classic one: background pass + subject pass + a text/logo overlay, all generated separately, then stacked. Or a multi-pass workflow where you want to keep the raw passes separate so you can tweak blending later instead of being stuck with a flat PNG. If you composite and then export a flattened image, you can also just save the PSD and let the editor export the JPEG - you lose nothing.
Where it falls short: it's a straight layer stacker, not a blend organizer. You won't get adjustment layers, blend modes beyond what you set later, or a group hierarchy - those are editor concerns, and honestly that's fine, because the editor is the right tool for them anyway. If you need fancier PSD handling, the pack ships a more advanced variant (Star PSD Saver Adv. Layers) - this one is the simple seven-slot workhorse.
Install
It's part of the StarNodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/Starnodes2024/ComfyUI_StarNodes
or ComfyUI Manager → search Starnodes. Restart, then look under ⭐StarNodes/Image And Latent. The psd-tools>=1.10.0 requirement gets installed automatically with Manager; if you cloned manually and the node is missing, run pip install psd-tools in your ComfyUI environment.
Common gotchas
If the node shows up grayed out or "not found", it's the psd-tools import failing - check your terminal output for the "Could not load StarPSDSaver" line and reinstall the dependency. If your output folder looks empty, remember it's writing to output/PSD_Layers by default, not output. And there's no preview in the node itself - it's an output node, so the proof is the file on disk, not something on screen. Set filename_prefix per run if you don't want files overwriting each other.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| filename_prefix | STRING | multilayer | — |
| output_dir | STRING | PSD_Layers | — |
| save_psd | BOOLEAN | true | Save the layered .psd file to disk. Disable to only output the flattened image. |
| layer1opt | IMAGE | — | |
| mask1opt | MASK | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| flattened_image | IMAGE | — |