Image Compare

← All AI-created software

This is AI-generated (aka vibe-coded) software. It is specific to my needs and my system and may not work for you or yours. Support is limited, but if you report a bug I'll certainly look into it. The code is provided in the zip file for you to review should you choose.
⬇️ Download Image Compare.zip750.8 KBLast Updated: November 27, 2026Python

Compares two images, or two folders of images paired by name, pixel for pixel, to see exactly what an edit, an export or a conversion changed.

Main window of Image Compare, comparing a folder of photos before and after an edit
On this page

Features

  • Slider, Overlay and Difference views of each pair, with zoom, pan and a magnifying loupe
  • Two folders paired by file name, or by relative path with Recursive on, with the images on one side only listed
  • Each pair measured: the share of pixels that differ, the largest difference and the average
  • Identical pairs and pairs of different sizes marked in the Pairs list
  • Color-managed: embedded ICC profiles converted to sRGB before showing or comparing
  • Camera RAW files opened with a default rendering (with rawpy)
  • Opens pairs in the background, and the next one ahead, so the window never freezes
  • A neutral gray interface, so nothing next to the images tints them

Usage

pip install Pillow          # Python 3.8 or newer, with Tkinter
pip install tkinterdnd2     # optional: drag and drop
pip install rawpy           # optional: camera RAW files
python image-compare.py

The app reopens the last paths used. Choose each side with Folder… or File…, type a path and press Rescan, or drop a file or folder on a path field or on the image (left or right half). Use two folders or two files: a folder can’t be compared with a file. Two files are compared whatever their names.

Pairs

The Pairs list shows one row per pair; the selected row shows both thumbnails. At the right of each row, same marks an identical pair, a percentage the share of pixels that differ, and ⚠ a pair whose sizes differ. These are worked out in the background, one pair at a time, only while no pair is being opened. Below the pairs, Only on the left and Only on the right list the images with no match. Pairs are matched by the whole file name, so shot.CR2 pairs with shot.CR2, not shot.jpg. Drag the line beside the list to widen it.
Rescan reads both sides again and measures everything afresh.

The supported formats are JPEG, PNG, BMP, GIF, TIFF and WebP, and camera RAW files (CR2, CR3, NEF, ARW, DNG, RAF, ORF, RW2 and others) with rawpy.

Views

  • Slider shows the left image on one side of a divider and the right on the other. Drag the divider, or nudge it with [ and ].
  • Overlay shows one image at a time in the same place: click or press Space to flip between them.
  • Difference shows |left − right| for each pixel: black where they match. Raise the × factor (1 to 32) to see faint differences.
  • Loupe shows a 4× magnifier beside the cursor, with the pixel’s coordinates. In Slider it shows both sides.

Zoom with the wheel around the cursor, the View presets (Fit, 50%, 100%, 200%) or − and +; pan with the middle or right button, or Shift and drag. Both images always move together, and a new pair opens at Fit. At 100% one screen pixel is one image pixel, whatever the display scaling.
From 200%, pixels are drawn sharp.

The Compare header says how the open pair differs: Identical: no pixel differs, or for example 1.0% of pixels differ · largest difference 190 · average 0.42 (out of 255).

Pairs of different sizes

A pair whose sizes differ is marked ⚠ in the list and in the info line, and isn’t measured. With Match sizes on, the right image is scaled to the left’s size so the two line up; off, each is shown at its own size from the top left, and Difference is dimmed.

Colors, orientation and RAW files

Images are shown as 8-bit sRGB: an embedded profile (Adobe RGB, Display P3, ProPhoto) is converted, and a file with none is taken as sRGB. The info line says how each side’s colors were read. Photos are turned upright from their EXIF orientation tag before they are shown, compared or their sizes checked.

RAW files are decoded with the camera’s white balance and a default rendering, not your darktable edit (.xmp sidecars are ignored): to compare edits, export them and compare the exports. A 21-megapixel RAW pair takes a few seconds to open; the window keeps responding meanwhile.

Messages and About

Right-click a message to copy all of it: the status line, a side’s size and color note, the numbers above the image, or the Pairs list’s counts. About, at the top right (or F1), shows the version, with links to the app’s page and to more free apps. On Windows, an app running as administrator says so: its title starts with Administrator: and the status line shows ⛨ Administrator.

Settings

Paths, switches, the window’s place and the Pairs list’s width are saved on closing in image-compare.ini, in the app’s working folder: the folder holding the app, unless --working-folder-path says otherwise. The file can be edited by hand; a value that can’t be read falls back to its default.
The first time it starts without one, the app brings over the settings older versions kept in %APPDATA%\image-compare or in image_compare_settings.json.

Command line

python image-compare.py --left-file-or-folder-path ./before --right-file-or-folder-path ./after --recursive TRUE
  • --working-folder-path FOLDER: where the settings and temporary files go, created if needed. Blank: the app’s folder.
  • --left-file-or-folder-path PATH: the file or folder for the left side. Blank: the saved one.
  • --right-file-or-folder-path PATH: the file or folder for the right side. Blank: the saved one.
  • --recursive TRUE or FALSE: match images in sub-folders by relative path. Blank: the saved choice.

Every option takes a value (--name VALUE or --name=VALUE); yes/no options also take 1/0, YES/NO or ON/OFF. A mistake exits with status 2, shown in a message box when there is no console. --help lists the options.

Keyboard shortcuts

Key Action
← / → Previous / next pair
Shift+← / Shift+→ Previous / next pair that isn’t identical
+ or = / − Zoom in / out
0 Fit
1 100%
[ / ] Nudge the divider left / right (Slider)
Space Flip between left and right (Overlay)
F1 About

Shortcuts other than F1 are ignored while typing in a field or while a dialog is open.

Troubleshooting

  • “Tkinter is not available”: install Tkinter with your Python (on Debian or Ubuntu, sudo apt install python3-tk).
  • “Opening camera RAW files needs rawpy”: pip install rawpy, or export the photo as an sRGB JPEG, PNG or TIFF.
  • Drag and drop does nothing: pip install tkinterdnd2. The status line says whether it’s available.
  • “Could not save the settings” when closing: the working folder is missing, read-only or full. Give the app one it can write to with --working-folder-path.
  • The window opens somewhere unexpected: delete the [window] section of image-compare.ini with the app closed.
  • The view looks soft just after zooming: a quick preview is drawn first; the full-quality view follows 0.4 seconds after the view stops changing.

Limitations

  • The app only shows images; it never saves or changes them.
  • Colors outside sRGB are clipped, so two images that differ only there can show as identical.
  • HEIC files aren’t supported.
  • A pair whose sizes differ gets no numbers, even with Match sizes on.
  • Measuring every pair decodes every image, which keeps a processor core busy for a while on a large folder.

Version 1.0.1, updated 2026-11-17. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/photo-utilities/image-compare/

⬇️ Download Image Compare.zip750.8 KBLast Updated: November 27, 2026Python

← All AI-created software