Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Lower PNG compression for more speed.

comfyanonymouscc127eeabd5c
diff --git a/nodes.py b/nodes.py
index 530f4cea9..0b8be7659 100644
--- a/nodes.py
+++ b/nodes.py
@@ -779,7 +779,7 @@ class SaveImage:
metadata.add_text(x, json.dumps(extra_pnginfo[x]))
file = f"{filename}_{counter:05}_.png"
- img.save(os.path.join(full_output_folder, file), pnginfo=metadata, optimize=True)
+ img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=4)
results.append({
"filename": file,
"subfolder": subfolder,