⤡
⊞
diff --git a/src/lib/nodes/ComfySaveImageNode.ts b/src/lib/nodes/ComfyImageNodes.ts
similarity index 77%
rename from src/lib/nodes/ComfySaveImageNode.ts
rename to src/lib/nodes/ComfyImageNodes.ts
index 0beeb97..9a0c739 100644
--- a/src/lib/nodes/ComfySaveImageNode.ts
+++ b/src/lib/nodes/ComfyImageNodes.ts
@@ -10,13 +10,16 @@ export type ComfyImageExecOutput = {
images: ComfyImageResult[]
}
-export default class ComfySaveImageNode extends ComfyGraphNode {
+/*
+ * Node with a single extra image output widget
+ */
+class ComfyImageNode extends ComfyGraphNode {
private _imageResults: Array = [];
private _galleryWidget: ComfyGalleryWidget;
constructor(title?: any) {
super(title)
- this._galleryWidget = new ComfyGalleryWidget("Images", this._imageResults, this);
+ this._galleryWidget = new ComfyGalleryWidget("Images", [], this);
this.virtualWidgets.push(this._galleryWidget)
}
@@ -32,3 +35,9 @@ export default class ComfySaveImageNode extends ComfyGraphNode {
this._galleryWidget.setValue(galleryItems)
}
}
+
+export class ComfySaveImageNode extends ComfyImageNode {
+}
+
+export class ComfyPreviewImageNode extends ComfyImageNode {
+}
diff --git a/src/lib/nodes/index.ts b/src/lib/nodes/index.ts
index 42a06b5..e355079 100644
--- a/src/lib/nodes/index.ts
+++ b/src/lib/nodes/index.ts
@@ -1,2 +1,2 @@
export { default as ComfyReroute } from "./ComfyReroute"
-export { default as ComfySaveImageNode } from "./ComfySaveImageNode"
+export { ComfySaveImageNode, ComfyPreviewImageNode } from "./ComfyImageNodes"