---
title: "Compare Images"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/compare/compareimages
markdown: https://docs.nodetool.ai/nodes/nodetool/compare/compareimages.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/compare/compareimages.md
---

# Compare Images

**Type:** `nodetool.compare.CompareImages`

**Namespace:** `nodetool.compare`

## Description

Compare two images side-by-side with an interactive slider.
    image, compare, comparison, diff, before, after, slider

    Use this node to visually compare:
    - Before/after processing results
    - Different model outputs
    - Original vs edited images
    - A/B testing of image variations

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| image_a | `image` | First image (displayed on left/top) | `{"type":"image","uri":"","asset_id":null,"data"...` |
| image_b | `image` | Second image (displayed on right/bottom) | `{"type":"image","uri":"","asset_id":null,"data"...` |
| label_a | `str` | Label for the first image | `A` |
| label_b | `str` | Label for the second image | `B` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| comparison | `any` |  |
| score | `float` |  |
| equal | `bool` |  |

## Related Nodes

Browse other nodes in the [nodetool.compare](./) namespace.
