Image Save Jpg
The pack's workhorse JPEG saver, with date and node-value prefixes
- images
Image Save Jpg (SaveJpgImage) from the zsq_prompt pack is the standard JPEG writer this pack is built around. It's a near-copy of ComfyUI's core save-image node, trimmed to output JPEG at quality 85 - and its one real trick is that the filename_prefix understands the same formatting tokens core ComfyUI supports, like %date:yyyy-MM-dd% and even pulling values from other nodes. So instead of hand-renaming a hundred files, you can make the filenames organize themselves.
How it works
You feed it images and a filename_prefix, and it writes one JPG per batch frame into ComfyUI/output/, numbering them sequentially. The author kept the tooltips from ComfyUI's core node, and they tell the whole story: the prefix "may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes."
That second token is the underrated feature - any node in your graph that has a .width-style value can be dropped into the filename, which is a genuinely nice way to auto-organize output by the settings that produced it. You're not going to find this in most third-party savers.
It's an output node with no outputs: it terminates a branch and returns only UI info (the file list).
Inputs and outputs that matter
- images - the images to save (tooltip: "The images to save.").
- filename_prefix - the prefix, with
%date:yyyy-MM-dd%and%node.value%formatting available. This is the input worth your attention. - No outputs - it's a terminal node.
Where it fits
If you're inside the zsq_prompt ecosystem, this is the save node you'll actually hit - it's the parent class behind the pack's other savers. Use the date token when you want daily folders of exports without lifting a finger, and use a %node.value% token (like a sampler's seed or an image's width) when you want to keep batches from the same settings grouped in the filename.
One honest caveat: it's JPEG, quality 85, no embedded workflow metadata. For archival quality, PNG, or "drag this PNG back into ComfyUI to rebuild the workflow" output, use core Save Image instead. This node is for quick, small, shareable files - and it does that job cleanly.
Installing zsq_prompt
Shared pack install. ComfyUI Manager → search zsq_prompt → install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/windfancy/zsq_prompt
Restart ComfyUI. Expect a heavy shared dependency install (transformers, opencv-python, opencv-contrib-python, scikit-image, timm, onnx, ultralytics) even though saving only needs PIL. If Manager flags "conflicting with zsq_prompt" on a workflow, that's dependency-overlap noise; only meaningful once the pack is installed. No model downloads needed.
Gotchas
- JPEG 85 is visibly lossy on flat-color areas. If you're saving something with text or fine gradients, PNG is kinder.
- No workflow metadata gets embedded, so a JPG can't reproduce the graph the way a core PNG can. Share the workflow JSON separately if that matters.
- File names get the counter suffix (
_00001_style); the%date%token affects the prefix, not the numbering scheme.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | The images to save. | |
| filename_prefix | STRING | ComfyUI | The prefix for the file to save. This may include formatting information such as %date:yyyy-MM-dd% or %Empty Latent Image.width% to include values from nodes. |
Outputs (0)
No outputs