[bug] "Can only save one image at a time" Save Image Sequence (mtb) node
Describe the bug
No matter what I tried, I cannot save multiple images to a single folder using Save Image Sequence. I am loading the images using the Load Image Sequence (mtb) node and connecting the image output of the (Load Image Sequence node) to images input of the (Save Image Sequence node) and setting the current_frame to -1 so that load image sequence node can collect all the images and load them all.
But the Save image sequence nodes complains: "Can only save one image at a time" and that is it.
File "C:\Users...\ComfyUI\custom_nodes\comfy-mtb\nodes\video.py", line 293, in save_images raise ValueError("Can only save one image at a time") ValueError: Can only save one image at a time
I am able to save single images to the said folder by setting the current frame to a number greater than -1. So clearly, it is not a path problem.
Clearly it can save more than one image at a time, because otherwise existing Save Image nodes would be sufficient. I am missing something obvious here I suppose. Any help would be appreciated.
Thanks in advance.
Reproduction
just connect Load Image Sequence to a Save image Sequence node and try to save multiple images to a folder using current_frame=-1.
Expected behavior
Save multiple images.
Operating System
Windows (Default)
Comfy Mode
Comfy Desktop
Console output
File "C:\Users\...\ComfyUI\custom_nodes\comfy-mtb\nodes\video.py", line 293, in save_images
raise ValueError("Can only save one image at a time")
ValueError: Can only save one image at a time
Additional context
No response
Hi, Thanks for the report. I'm going to look into it today. Both nodes could benefit a lift
I also realized that Save Image nodes in the core comfyUI does save multiple images but do not give flexibility to where they are saved. They are all just dumped into the Output folder. There is another Node pack called WAS Node Suite that has a nice Image Save node that really works well (with the output of Load Sequence Node in this repo for example) and has a lot of flexibility to specify where to save your files etc. In case anyone finds this useful, I will leave this comment here.
I hope you get a chance to improve this node. It should at least be able to mirror the Load Sequence Node (which I found very useful) in terms of functionality.
Thank you.