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

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.
<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.
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.
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.
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 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 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.
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.
| 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.
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/

