ComfyUI > Nodes > ComfyUI-LogicUtils > Save Image Webp Node

ComfyUI Node: Save Image Webp Node

Class Name

SaveImageWebpCustomNode

Category
image
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save Image Webp Node Description

Facilitates saving images in WebP format, optimizing file size and quality for web use.

Save Image Webp Node:

The SaveImageWebpCustomNode is designed to facilitate the saving of images in the WebP format, a modern image format that provides superior compression for images on the web. This node is particularly beneficial for AI artists and developers who need to efficiently store and manage image outputs from their creative processes. By utilizing the WebP format, this node helps reduce file sizes without compromising image quality, making it ideal for web applications where bandwidth and storage are considerations. The node's primary function is to convert and save images in this format, ensuring that the resulting files are optimized for both quality and size, thus enhancing the overall efficiency of image handling in your projects.

Save Image Webp Node Input Parameters:

images

This parameter represents the collection of images that you wish to save in the WebP format. The images input is crucial as it determines the content that will be processed and saved by the node. The quality and characteristics of these images will directly affect the output, so ensure that the images are prepared and formatted correctly before inputting them into the node.

filename_prefix

The filename_prefix is a string input that allows you to specify a prefix for the saved WebP files. This is useful for organizing and identifying files, especially when dealing with multiple outputs. By default, this might be set to a generic name like "ComfyUI," but you can customize it to suit your project needs, ensuring that your files are easily recognizable and sorted.

fps

The fps (frames per second) parameter is a float that determines the playback speed of the images if they are part of an animation. It is particularly relevant when saving animated WebP files. The default value is 6.0, with a minimum of 0.01 and a maximum of 1000.0, allowing for a wide range of animation speeds to suit different artistic requirements.

lossless

This boolean parameter specifies whether the WebP compression should be lossless. When set to true, the images are saved without any loss of quality, which is ideal for preserving the original image details. However, this may result in larger file sizes compared to lossy compression, which reduces file size at the expense of some image quality.

quality

The quality parameter is an integer that controls the compression quality of the WebP images, ranging from 0 to 100. A higher value results in better image quality but larger file sizes, while a lower value reduces file size at the cost of image quality. The default setting is 80, which provides a good balance between quality and compression.

method

This parameter allows you to choose the compression method for the WebP images. It is a combo input with options such as "default," "fastest," and "slowest," each corresponding to different levels of compression speed and efficiency. Selecting the appropriate method can help optimize the saving process based on your specific needs, whether you prioritize speed or compression quality.

Save Image Webp Node Output Parameters:

SavedImages

The output of the SaveImageWebpCustomNode is a SavedImages object, which contains the saved WebP files. This output is essential as it provides the final product of the node's processing, allowing you to access and utilize the optimized WebP images in your projects. The SavedImages object ensures that the images are stored in a format that is both efficient and easy to manage, facilitating their use in various applications.

Save Image Webp Node Usage Tips:

  • To achieve the best balance between image quality and file size, experiment with the quality parameter. A setting around 80 is generally a good starting point.
  • Use the lossless parameter judiciously; while it preserves image quality, it can significantly increase file size. Consider using it only when necessary.
  • If you are working with animations, adjust the fps parameter to match the desired playback speed, ensuring that the animation appears smooth and natural.

Save Image Webp Node Common Errors and Solutions:

"Invalid image input"

  • Explanation: This error occurs when the images provided are not in a compatible format or are corrupted.
  • Solution: Ensure that the images are correctly formatted and not corrupted before inputting them into the node.

"Filename prefix not specified"

  • Explanation: This error arises when the filename_prefix parameter is left empty, leading to issues in file naming.
  • Solution: Provide a valid string for the filename_prefix to ensure that the files are saved with the correct names.

"FPS value out of range"

  • Explanation: This error indicates that the fps value is set outside the allowable range of 0.01 to 1000.0.
  • Solution: Adjust the fps value to fall within the specified range to avoid this error.

"Unsupported compression method"

  • Explanation: This error occurs when an invalid option is selected for the method parameter.
  • Solution: Choose a valid compression method from the available options: "default," "fastest," or "slowest."

Save Image Webp Node Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.