ComfyUI > Nodes > ComfyUI > Compare Images

ComfyUI Node: Compare Images

Class Name

ImageCompare

Category
image
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

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

Compare Images Description

Facilitates visual comparison of two images with a slider interface for artists and designers to evaluate differences or similarities efficiently.

Compare Images:

The ImageCompare node is designed to facilitate the visual comparison of two images by providing a slider interface that allows you to view them side by side. This node is particularly useful for artists and designers who need to evaluate differences or similarities between two images, such as before-and-after shots or comparing different versions of a design. By offering a straightforward and interactive way to juxtapose images, the ImageCompare node enhances your ability to make informed decisions about image quality, composition, and other visual elements. Its primary goal is to streamline the comparison process, making it more intuitive and accessible, even for those without a technical background.

Compare Images Input Parameters:

image_a

This parameter accepts the first image you wish to compare. It is optional, meaning you can choose to provide only one image if desired. The function of this parameter is to serve as one of the two images displayed in the comparison interface. By inputting an image here, you enable the node to save and prepare it for side-by-side viewing. There are no specific minimum, maximum, or default values for this parameter, as it depends on the images you choose to compare.

image_b

Similar to image_a, this parameter accepts the second image for comparison. It is also optional, allowing flexibility in how you use the node. The purpose of image_b is to provide the second image that will be displayed alongside image_a in the slider interface. This parameter helps you to visually assess differences or similarities between the two images. Like image_a, there are no predefined limits or default values for this parameter.

compare_view

The compare_view parameter is a specialized input that configures the slider interface for comparing the two images. It is essential for enabling the interactive comparison feature of the node. This parameter does not have specific minimum, maximum, or default values, as it is more about setting up the interface rather than altering the images themselves.

Compare Images Output Parameters:

The ImageCompare node does not produce any direct output parameters. Instead, its primary function is to facilitate the visual comparison of images through an interactive interface. The results of using this node are more about the visual insights gained from the comparison rather than data outputs.

Compare Images Usage Tips:

  • Ensure that both image_a and image_b are of similar dimensions for a more accurate and visually appealing comparison.
  • Use high-resolution images to take full advantage of the slider interface, allowing for detailed examination of image differences.

Compare Images Common Errors and Solutions:

No images provided

  • Explanation: This error occurs when neither image_a nor image_b is provided to the node.
  • Solution: Ensure that at least one image is inputted into either image_a or image_b to enable the comparison feature.

Invalid image format

  • Explanation: This error might occur if the images provided are not in a supported format.
  • Solution: Convert your images to a standard format such as JPEG or PNG before inputting them into the node.

Compare Images Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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.

Compare Images