The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Use PNG compress level 4 for GLB textures (#16867)
Jukka Seppänen58b176f0c842
diff --git a/comfy_extras/nodes_save_3d.py b/comfy_extras/nodes_save_3d.pyindex 09382ee31..684469138 100644--- a/comfy_extras/nodes_save_3d.py+++ b/comfy_extras/nodes_save_3d.py@@ -180,22 +180,22 @@ def save_glb(vertices, faces, filepath=None, metadata=None,texture_png_bytes = Noneif texture_image is not None:buf = BytesIO()- texture_image.save(buf, format="PNG")+ texture_image.save(buf, format="PNG", compress_level=4)texture_png_bytes = buf.getvalue()mr_png_bytes = Noneif metallic_roughness_image is not None:buf = BytesIO()- metallic_roughness_image.save(buf, format="PNG")+ metallic_roughness_image.save(buf, format="PNG", compress_level=4)mr_png_bytes = buf.getvalue()nm_png_bytes = Noneif normal_map_image is not None:buf = BytesIO()- normal_map_image.save(buf, format="PNG")+ normal_map_image.save(buf, format="PNG", compress_level=4)nm_png_bytes = buf.getvalue()em_png_bytes = Noneif emissive_image is not None:buf = BytesIO()- emissive_image.save(buf, format="PNG")+ emissive_image.save(buf, format="PNG", compress_level=4)em_png_bytes = buf.getvalue()vertices_buffer = vertices_np.tobytes()