Prevent persisting preview image paths in workflow JSON

Updated image_comparer.js to avoid saving preview image paths when serializing the workflow, ensuring that no unnecessary image data is stored. Bumped project version to 1.6.4 in pyproject.toml.
This commit is contained in:
Maxed-Out-99
2026-01-26 21:04:46 -08:00
parent 5230d74024
commit ad91727749
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "maxedout"
description = "Custom ComfyUI nodes used in Maxed Out workflows (SDXL, Flux, Wan 2.2, etc.)"
version = "1.6.3"
version = "1.6.4"
license = {file = "LICENSE"}
# classifiers = [
# # For OS-independent nodes (works on all operating systems)
+2 -5
View File
@@ -458,11 +458,8 @@ class MxdImageComparer extends MxdBaseServerNode {
// super.onSerialize && super.onSerialize(serialised);
for (let [index, widget_value] of (serialised.widgets_values || []).entries()) {
if (this.widgets[index]?.name === "mxd_comparer") {
serialised.widgets_values[index] = this.widgets[index].value.images.map((d) => {
d = { ...d };
delete d.img;
return d;
});
// Do not persist preview image paths into workflow JSON.
serialised.widgets_values[index] = [];
}
}
}