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.

Enable compression on saved EXR. (#16948)

comfyanonymousad30981c89c6
diff --git a/comfy_extras/nodes_images.py b/comfy_extras/nodes_images.py
index 850f5af06..4628d6609 100644
--- a/comfy_extras/nodes_images.py
+++ b/comfy_extras/nodes_images.py
@@ -1695,7 +1695,7 @@ def _encode_image(
codec.pix_fmt = spec["stream_fmt"]
codec.time_base = Fraction(1, 1)
if file_format == "exr":
- codec.options = {"format": "half" if bit_depth == "16-bit float" else "float"}
+ codec.options = {"format": "half" if bit_depth == "16-bit float" else "float", "compression": "zip16"}
frame = av.VideoFrame.from_ndarray(img_np, format=spec["frame_fmt"])
if spec["frame_fmt"] != spec["stream_fmt"]: