Home (All Topics) → Technology → Software → AI-Created Software
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.

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.
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.
[ and ].|left − right| for each pixel: black where they match. Raise the × factor (1 to 32) to see faint differences.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).
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.
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.
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.
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.
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.
| 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.
sudo apt install python3-tk).pip install rawpy, or export the photo as an sRGB JPEG, PNG or TIFF.pip install tkinterdnd2. The status line says whether it’s available.--working-folder-path.[window] section of image-compare.ini with the app closed.
Version 1.0.1, updated 2026-11-17. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/photo-utilities/image-compare/

