This simple plugin was created in response to a request here.
It simply samples the entire image colour, and allows you to either:
- Display the RGB or grey values
- Set the foregound colour
- Set the background colour
- Add it to the current palette (if editable)
There is a toggle to sample just the layer, or the merged image.
It registers in the Colour menu as "Sample Average Colour..." and should work for RGB, indexed, or greyscale images.
UPDATE: Version 1.3 of the script fixes a bug that was introduced by a gimp bug fix in version 2.6.9.