Image to Image Color Matcher

← 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 to Image Color Matcher.zip2.0 MBLast Updated: November 27, 2026Python

Matches the colors of a processed photo back to the original it came from: pin spots that should match, or let the app learn from every pixel, and save the corrected photo at full size.

Main window of Image to Image Color Matcher, with a pair of photos side by side, six pins and the matching settings
On this page

Features

  • Click a spot on either photo to pin it on both; photo 2 is corrected so the colors under each pin match the reference
  • Five matching modes (Blend, Spline, Matrix, Auto, Local) from the same pins, each scored on the whole photo
  • Auto-place puts pins where the two photos differ most
  • Side by side or stacked, with a one-key flip and a split bar, plus a ΔE map of what still differs
  • Two folders paired by name, listed in a Pairs panel and opened one after another with the same pins
  • A brush leaves out areas edited on purpose, so the matching doesn’t try to undo them
  • Undo and Redo, and pins kept between sessions
  • Saves the matched photo at full size, with an sRGB profile and the processed photo’s camera data

Usage

pip install pillow numpy          # Python 3.8 or newer, with Tkinter
pip install rawpy                 # optional: opens camera RAW files
python image-to-image-color-matcher.py

Tkinter comes with the python.org installers; on Debian and Ubuntu, sudo apt install python3-tk. The app opens JPEG, PNG, TIFF, WebP, BMP and GIF files, and camera RAW files with rawpy.

Matching a photo

  1. In the path row, choose the Reference (the original) and the Processed photo with File…, or two folders with Folder…, then click Rescan (or press Enter in a field). Two files pair whatever their names; two folders pair photos with the same name, and Recursive pairs sub-folders too. If the resolutions differ, the reference is scaled to the processed photo.
  2. Click a spot that should have the same color in both, ideally an even area such as a gray wall or sky. A pin appears on both photos and photo 2 is corrected at once; one pin corrects the whole photo.
  3. Add pins on other colors that still look wrong. Each pin is labeled with its ΔE from the reference before and after matching (“3 12.1 → 0.4”); below 2 is hard to see. Or type a number in Auto-place and click Place: the frame is cut into that many equal parts, and each gets a pin where the photos differ most, skipping clipped spots, edges and fine texture. The new pins replace the old ones.
  4. Save matched… (Ctrl+S) saves the corrected photo, by default beside the processed one as <name>-matched.<ext>, and marks the pair with ✓ in the Pairs list.

Drag a pin to move it; right-click it, or select it and press Delete, to remove it. Pins stay when another pair opens, so a series of similar photos can be matched at the same spots, and they are saved with the left-out areas when the app closes.

Matching modes

Switch with the buttons under Matching or the keys 1 to 5; the pins stay. Under each button is the whole photo’s average ΔE after that mode, with best beside the lowest, and resting the pointer on a button says what it is for.

Mode Pins Best for
Blend Needed A few pins. Each color takes a blend of the pins’ corrections, weighted by how close it is to each pin’s color; Reach sets how quickly they fade.
Spline Needed Five or more pins on varied colors: a smooth warp through every pin.
Smoothing lets pins that disagree give a little.
Matrix Needed, or not used White balance and color calibration changes: a color matrix in linear light and a lightness curve. Fit to: Whole photo fits it to every pixel and ignores the pins.
Auto Optional Processing that treated the whole photo alike: learned from every pixel, with pins to fine-tune.
Local Optional Vignettes, graduated filters and other changes that vary across the frame: Auto, corrected again area by area.

Pins a mode doesn’t use have dashed rings. Match lightness off corrects only hue and saturation, keeping photo 2’s own brightness and contrast. Pin size (1 to 51 px) is the square each pin samples.

Comparing

  • Side by side shows the reference (■) beside photo 2 (□). Stacked shows one at a time: press backslash, or click the showing photo’s button again, to flip; Split shows both with a bar to drag.
  • Photo 2: Processed | Matched (M) shows photo 2 with or without the correction.
  • ΔE map (D) shows photo 2 as its difference from the reference, from dark (a match) through red to pale yellow, with a scale; on the matched photo it shows where the next pin would help most.
  • Whole photo in the right column gives the average ΔE before and after matching; the readout shows the colors under the cursor in all three photos.

Pairs

The Pairs panel lists every pair. Click a row, use Prev and Next, or press the left and right arrows to open another. ⚠ marks a pair whose photos differ in shape by more than 1%, so pins may not land on the same spot. A pair that can’t be opened clears the photos and the canvas says why.

Leaving areas out

Auto, Local, Matrix fitted to the whole photo and Auto-place learn from the whole photo, so a local edit made on purpose would skew them.
Choose Brush: Leave out (B) and paint over it; Bring back erases, Clear areas removes them all, and [ and ] change the brush size.
The areas show in yellow while the brush is on. The correction is still applied to them.

Settings

Settings are saved on closing in image-to-image-color-matcher.ini, and the pins and left-out areas in image-to-image-color-matcher-pins.json, in the working folder: by default the folder holding the script. Earlier versions kept them in %APPDATA%\image-to-image-color-matcher (Windows) or ~/.config/image-to-image-color-matcher (Linux); copy the two files across, or start the app with --working-folder-path set to that folder. The last pair of paths opens again at the next start. Delete the settings file to go back to the defaults.

The status line

The status line says what just happened, such as where the matched photo was saved; right-click it to copy the whole message.
About (F1), at the right end of the path row, shows the app’s version and links to its page. When the app runs as administrator on Windows, the title bar and the status line say so.

Command line

python image-to-image-color-matcher.py --reference-file-or-folder-path originals --processed-file-or-folder-path edited --recursive TRUE
  • --working-folder-path FOLDER: where settings, pins and temporary files go, created if needed. Blank: the script’s folder.
  • --reference-file-or-folder-path PATH: the original photo, or a folder of them. Blank: the one used last.
  • --processed-file-or-folder-path PATH: the processed photo, or a folder of them. Blank: the one used last.
  • --recursive TRUE or FALSE: pair photos in sub-folders too, by their path inside the folder. Blank: the saved choice.
  • --help: list the options.

Options come in any order, as --name VALUE or --name=VALUE. A mistake stops the app with a message and exit status 2.

Keyboard shortcuts

Keys Action
Ctrl+S Save the matched photo
F1 About the app: its version and its page
Ctrl+Z, Ctrl+Y or Ctrl+Shift+Z Undo, Redo (pins and left-out areas)
Left and right arrows Previous or next pair
1 to 5 Blend, Spline, Matrix, Auto, Local
Backslash Stacked: flip between the photos. Side by side: photo 2 matched or processed
M Photo 2 matched or processed
D ΔE map on or off
Delete or Backspace Remove the selected pin
B, Escape Brush on or off, brush off
[ and ] Smaller or larger brush
Right-click a pin (Control-click on macOS) Remove it

No shortcut acts while you type in a field or while a dialog is open.

Troubleshooting

  • A RAW file won’t open: install rawpy, or export the photo from darktable as an sRGB JPEG, PNG or TIFF.
  • “No photo has the same name on both sides”: folders pair by name, extension included; rename the photos, or turn Recursive on if they are in sub-folders.
  • A pinned spot doesn’t match: two pins on nearly the same processed color with different reference colors pull against each other; remove one.
  • Clicking paints yellow instead of placing a pin: the brush is on; press B or Escape.
  • Placing pins changes nothing: Matrix is fitted to the whole photo; choose Fit to: Pins or another mode.
  • Which mode to use? Look at the scores under the mode buttons. Auto is a good first try and needs no pins; use Local if the edges or one area stay off.

Limitations

  • The photos must have the same framing: they are compared pixel by pixel and not aligned.
  • Only colors are matched: detail, noise and clipped highlights or shadows stay as they are.
  • The matched photo is saved in 8 bits. Photos over 6000 pixels on the long side are reduced on screen; saving works at full size.
  • One set of pins and left-out areas serves every pair; the Undo history isn’t kept between sessions.
  • RAW files are decoded with the camera’s white balance and a default rendering, not your darktable edit.
  • There is no zoom, and files can’t be dragged onto the window.

Version 1.0.0, updated 2026-11-16. infolific.com: https://infolific.com/technology/software-worth-using/ai-created/photo-utilities/image-to-image-color-matcher/

⬇️ Download Image to Image Color Matcher.zip2.0 MBLast Updated: November 27, 2026Python

← All AI-created software