mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-13 04:55:53 +00:00
can specify a subfolder in the SaveImage node
This commit is contained in:
@@ -110,7 +110,9 @@ class ComfyApp {
|
||||
const img = new Image();
|
||||
img.onload = () => r(img);
|
||||
img.onerror = () => r(null);
|
||||
img.src = "/view/" + src;
|
||||
var filename = src.replace(/^.*[\\\/]/, '');
|
||||
var subfolder = src.replace(filename, '');
|
||||
img.src = "/view?file=" + filename + "&subfolder=" + subfolder;
|
||||
});
|
||||
})
|
||||
).then((imgs) => {
|
||||
|
Reference in New Issue
Block a user