You are here

Colour Match

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

Easily map colours from a source colour to a target colour. Very effective for matching skin tones across images or between people.

Relatively quick (but not earth shattering). It doesn't work with grayscale or indexed images. Has preview, works with selections and layers, etc. Very, easy to use, and quite useful for portraits or recolouring graphics.

A demonstration: Lenna's face is mapped to the colour of the feather on her hat. This was done by selecting a colour from her face, then selecting a colour from the feather.

If you have an x86_64 version of GIMP 2.7 on linux, bunzip2 and move the colour-match file to your plugin directory:
bunzip2 colour-match.bz2
chmod 700 colour-match (Make it executable)
mv colour-match ~/.gimp-2.7/plug-ins/colour-match

To build it type: gimptool-2.0 --install colour-match.c
You will need libgimp-dev, and libgtk2.0-dev packages if you didn't build GIMP from source.

The algorithm is based on the relative color remap plug-in by Lars Clausen ( ).

colour-match.c9.81 KB
colour-match.bz28.63 KB
GIMP Version: 
Code License: 


and it worked yesterday, but today it always crashes:

GNU Image Manipulation Program: colour-match.exe - Application Error
The instruction at "0x7c91a60c" referenced memory at "0x00f0a002". The memory could not be "written".

Click on OK to terminate the program
Click on CANCEL to debug the program
OK Cancel

Plug-in crashed: "colour-match.exe"
(C:\Documents and Settings\Me\.gimp-2.6\plug-ins\colour-match.exe)

Sometimes I also get:

-Rob A>

Is this plug-in trying to access a layer that has not been attached to an image?

GLib-ERROR**: gmem.c:136: failed to allocate 12288 bytes aborting... followed by a runtime error msg.

As a guess
"No space or permission for (temporary storage of) 12Kb "

well a problem of space for less of 13Kb seems not reasonable even with a almost full HD or few ram

We do not know how much more memory the process had allocated already. The 12kB is just the part that couldn't be allocated anymore.

Here is a zip of the windows compile.

It seems.....intermittent for me.

-Rob A>

But I consider that an improvement, whereas before it crashed right out of the gate.

So far, it hasn't worked, but I appreciate you sharing the file, Rob.

Since the plug-in raises a dialog box, there should be ellipses after the name in the menus: "Colour Match..."

Can someone supply a built script? I have windows and it is a pain to build it on this system.

It is working for me. If the author wants to attach to the main post I cam provide it by email. just PM me with the information.

-Rob A>


Subscribe to Comments for "Colour Match"