ComfyUI > Nodes > ComfyUI-Image-Compressor

ComfyUI Extension: ComfyUI-Image-Compressor

Repo Name

ComfyUI-Image-Compressor

Author
liuqianhonga (Account age: 851 days)
Nodes
View all nodes(2)
Latest Updated
2025-06-22
Github Stars
0.03K

How to Install ComfyUI-Image-Compressor

Install this extension via the ComfyUI Manager by searching for ComfyUI-Image-Compressor
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Image-Compressor 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

ComfyUI-Image-Compressor Description

ComfyUI-Image-Compressor is a custom node for ComfyUI that enables image compression with support for various formats and adjustable parameters, enhancing flexibility and control over the compression process.

ComfyUI-Image-Compressor Introduction

The ComfyUI-Image-Compressor is a versatile extension designed to simplify the process of compressing images within the ComfyUI environment. This tool is particularly beneficial for AI artists who need to manage image sizes without compromising on quality. By supporting multiple image formats such as PNG, WEBP, and JPEG, this extension allows you to adjust image quality and compression levels according to your needs. Whether you're looking to save storage space, optimize images for web use, or maintain high-quality visuals, the ComfyUI-Image-Compressor provides a comprehensive solution.

How ComfyUI-Image-Compressor Works

At its core, the ComfyUI-Image-Compressor works by reducing the file size of images through compression techniques. Imagine squeezing a sponge to remove excess water; similarly, this extension compresses image data to make files smaller. It achieves this by adjusting parameters like image quality and compression levels, which determine how much data is retained or discarded. The extension also supports resizing images, akin to shrinking a large poster to fit a smaller frame, which further helps in reducing file size. By handling various input formats and maintaining transparency, it ensures that the compressed images meet your specific requirements.

ComfyUI-Image-Compressor Features

  • Multiple Image Formats: Supports PNG, WEBP, and JPEG, allowing you to choose the best format for your needs.
  • Adjustable Quality and Compression Levels: Fine-tune the balance between image quality and file size.
  • Image Resizing: Modify the dimensions of your images to further reduce file size.
  • Custom Output Path and Filename Prefix: Organize your compressed images with custom paths and prefixes.
  • File Size Display: View the file size before and after compression to understand the impact of your settings.
  • Batch Processing: Compress multiple images at once, saving time and effort.
  • Transparency Handling: Automatically manages transparency in images, ensuring no loss of visual fidelity.
  • Smart Input Handling: Efficiently processes various input formats, maintaining the integrity of your images.

ComfyUI-Image-Compressor Models

The extension offers two main node types for image compression:

Image Compressor Node

This node is ideal for compressing individual images. You can specify input parameters such as the desired output format, quality, resize factor, and compression level. The node outputs compressed images along with detailed compression information, making it easy to integrate into your workflow.

Batch Image Compressor Node

Designed for processing multiple images, this node allows you to specify a directory path containing the images you wish to compress. It automatically processes all compatible image files within the directory and its subdirectories, applying your chosen compression settings to each one.

Troubleshooting ComfyUI-Image-Compressor

Here are some common issues you might encounter and how to resolve them:

  • Images Not Compressing: Ensure that the input images are in a supported format (PNG, WEBP, JPEG). Check that the compression parameters are set correctly.
  • Output Path Issues: Verify that the output path is correctly specified. If using a relative path, ensure it is based on ComfyUI's output directory.
  • Quality Concerns: If the image quality is not as expected, adjust the quality or compression level settings. Higher quality settings result in better image fidelity but larger file sizes.

Learn More about ComfyUI-Image-Compressor

To further enhance your understanding and usage of the ComfyUI-Image-Compressor, consider exploring additional resources such as tutorials and community forums. Engaging with other AI artists can provide valuable insights and tips for optimizing your image compression workflow.

ComfyUI-Image-Compressor Related Nodes

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.

ComfyUI-Image-Compressor detailed guide | ComfyUI