From f4d4dfaa66ffa4bce0b00ebbb3eb57d648f02f95 Mon Sep 17 00:00:00 2001 From: octo-patch Date: Thu, 9 Apr 2026 12:33:21 +0800 Subject: [PATCH] fix: change SaveAnimatedWEBP default method from 'default' to 'fastest' (fixes #13300) The 'default' compression method maps to WebP method=4, which is significantly slower than method=0 ('fastest'). For animated WebP with many frames (e.g. 120 frames of video), this resulted in encoding times of 2+ minutes. Changing the node default to 'fastest' (method=0) reduces encoding time by ~3x while still allowing users to select higher compression methods when needed. --- comfy_extras/nodes_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_images.py b/comfy_extras/nodes_images.py index a77f0641f..3d47f44a0 100644 --- a/comfy_extras/nodes_images.py +++ b/comfy_extras/nodes_images.py @@ -196,7 +196,7 @@ class SaveAnimatedWEBP(IO.ComfyNode): IO.Float.Input("fps", default=6.0, min=0.01, max=1000.0, step=0.01), IO.Boolean.Input("lossless", default=True), IO.Int.Input("quality", default=80, min=0, max=100), - IO.Combo.Input("method", options=list(cls.COMPRESS_METHODS.keys())), + IO.Combo.Input("method", options=list(cls.COMPRESS_METHODS.keys()), default="fastest"), # "num_frames": ("INT", {"default": 0, "min": 0, "max": 8192}), ], hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],